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
2 changed files with 3 additions and 3 deletions
|
|
@ -135,8 +135,9 @@ angular.module('copayApp.controllers').controller('JoinController',
|
||||||
notification.error('Network Error', 'Wallet network configuration missmatch');
|
notification.error('Network Error', 'Wallet network configuration missmatch');
|
||||||
else if (err === 'badSecret')
|
else if (err === 'badSecret')
|
||||||
notification.error('Bad secret', 'The secret string you entered is invalid');
|
notification.error('Bad secret', 'The secret string you entered is invalid');
|
||||||
else
|
else {
|
||||||
notification.error('Unknown error');
|
notification.error('Error', err.message || err);
|
||||||
|
}
|
||||||
controllerUtils.onErrorDigest();
|
controllerUtils.onErrorDigest();
|
||||||
} else {
|
} else {
|
||||||
controllerUtils.installWalletHandlers($scope, w);
|
controllerUtils.installWalletHandlers($scope, w);
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ angular.module('copayApp.services')
|
||||||
|
|
||||||
root.onError = function(scope) {
|
root.onError = function(scope) {
|
||||||
if (scope) scope.loading = false;
|
if (scope) scope.loading = false;
|
||||||
root.logout();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
root.onErrorDigest = function(scope, msg) {
|
root.onErrorDigest = function(scope, msg) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue