Fix error
This commit is contained in:
parent
dd00604edc
commit
09ba421eea
2 changed files with 7 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('walletDetailsController', function($scope, $rootScope, $interval, $timeout, $filter, $log, $ionicModal, $ionicPopover, $state, $stateParams, $ionicHistory, profileService, lodash, configService, platformInfo, walletService, txpModalService, externalLinkService, popupService, addressbookService, storageService, $ionicScrollDelegate, $window) {
|
angular.module('copayApp.controllers').controller('walletDetailsController', function($scope, $rootScope, $interval, $timeout, $filter, $log, $ionicModal, $ionicPopover, $state, $stateParams, $ionicHistory, profileService, lodash, configService, platformInfo, walletService, txpModalService, externalLinkService, popupService, addressbookService, storageService, $ionicScrollDelegate, $window, bwcError) {
|
||||||
|
|
||||||
var HISTORY_SHOW_LIMIT = 10;
|
var HISTORY_SHOW_LIMIT = 10;
|
||||||
var currentTxHistoryPage = 0;
|
var currentTxHistoryPage = 0;
|
||||||
|
|
@ -60,7 +60,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
if (err === 'WALLET_NOT_REGISTERED') {
|
if (err === 'WALLET_NOT_REGISTERED') {
|
||||||
$scope.walletNotRegistered = true;
|
$scope.walletNotRegistered = true;
|
||||||
} else {
|
} else {
|
||||||
$scope.updateStatusError = err;
|
$scope.updateStatusError = bwcError.msg(err, 'BWS Error');
|
||||||
}
|
}
|
||||||
$scope.status = null;
|
$scope.status = null;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,11 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
if (err instanceof errors.NOT_AUTHORIZED) {
|
if (err instanceof errors.NOT_AUTHORIZED) {
|
||||||
return cb('WALLET_NOT_REGISTERED');
|
return cb('WALLET_NOT_REGISTERED');
|
||||||
}
|
}
|
||||||
return cb(err);
|
if (err instanceof errors.CONNECTION_ERROR)
|
||||||
|
return cb('CONNECTION_ERROR');
|
||||||
|
|
||||||
|
if (err instanceof errors.NOT_FOUND)
|
||||||
|
return cb('NOT_FOUND');
|
||||||
}
|
}
|
||||||
return cb(null, ret);
|
return cb(null, ret);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue