Catch the errors on the notification system. If there is an error when joining, not logout

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-22 18:52:56 -03:00 committed by Matias Alejo Garcia
parent 2900f25831
commit 169c42af85
2 changed files with 3 additions and 3 deletions

View File

@ -135,8 +135,9 @@ angular.module('copayApp.controllers').controller('JoinController',
notification.error('Network Error', 'Wallet network configuration missmatch');
else if (err === 'badSecret')
notification.error('Bad secret', 'The secret string you entered is invalid');
else
notification.error('Unknown error');
else {
notification.error('Error', err.message || err);
}
controllerUtils.onErrorDigest();
} else {
controllerUtils.installWalletHandlers($scope, w);

View File

@ -48,7 +48,6 @@ angular.module('copayApp.services')
root.onError = function(scope) {
if (scope) scope.loading = false;
root.logout();
}
root.onErrorDigest = function(scope, msg) {