Improve the error handling to expose and log errors if removing a card fails.

This commit is contained in:
Andy Phillipson 2016-11-21 15:10:59 -05:00
commit 1a2fea578d
4 changed files with 22 additions and 5 deletions

View file

@ -64,6 +64,8 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
if (err) {
$log.error(err);
$scope.error = gettextCatalog.getString('Could not get transactions');
self.bitpayCardTransactionHistory = null;
self.bitpayCardCurrentBalance = null;
return;
}