handle get keys exception

This commit is contained in:
Gabriel Bazán 2016-09-08 16:19:45 -03:00
commit d5766485ec
2 changed files with 5 additions and 6 deletions

View file

@ -25,6 +25,7 @@ angular.module('copayApp.controllers').controller('backupController',
walletService.getKeys(wallet, function(err, k) {
if (err || !k) {
$log.error('Could not get keys: ', err);
$state.go('wallet.preferences');
return;
}