better error on recreate

This commit is contained in:
Matias Alejo Garcia 2015-04-27 14:11:52 -03:00
parent b74c01f5b7
commit dc7676e4b0
1 changed files with 2 additions and 1 deletions

View File

@ -448,7 +448,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setOngoingProcess('recreating', false);
if (err) {
self.clientError('Could not recreate wallet:' + err);
$log.error(err);
self.clientError('Could not recreate wallet:' + (err.error ? err.error : err));
$rootScope.$apply();
return;
}