mirror of https://github.com/BTCPrivate/copay.git
Catch the errors on the notification system. If there is an error when joining, not logout
This commit is contained in:
parent
2900f25831
commit
169c42af85
|
@ -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);
|
||||
|
|
|
@ -48,7 +48,6 @@ angular.module('copayApp.services')
|
|||
|
||||
root.onError = function(scope) {
|
||||
if (scope) scope.loading = false;
|
||||
root.logout();
|
||||
}
|
||||
|
||||
root.onErrorDigest = function(scope, msg) {
|
||||
|
|
Loading…
Reference in New Issue