better error on recreate

This commit is contained in:
Matias Alejo Garcia 2015-04-27 14:11:52 -03:00
commit dc7676e4b0

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;
}