Merge pull request #88 from gabrielbazan7/fix/exception
handle get keys exception
This commit is contained in:
commit
7429d951ce
2 changed files with 2 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ angular.module('copayApp.controllers').controller('backupController',
|
||||||
|
|
||||||
walletService.getKeys(wallet, function(err, k) {
|
walletService.getKeys(wallet, function(err, k) {
|
||||||
if (err || !k) {
|
if (err || !k) {
|
||||||
|
$log.error('Could not get keys: ', err);
|
||||||
$state.go('wallet.preferences');
|
$state.go('wallet.preferences');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1023,7 +1023,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
try {
|
try {
|
||||||
keys = wallet.getKeys(password);
|
keys = wallet.getKeys(password);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return cb(err);
|
return cb(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cb(null, keys);
|
return cb(null, keys);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue