improve error message

This commit is contained in:
Javier 2016-10-12 10:19:27 -03:00
commit 8d9b937806

View file

@ -28,10 +28,13 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
function updateMemo() { function updateMemo() {
walletService.getTxNote(wallet, $scope.btx.txid, function(err, note) { walletService.getTxNote(wallet, $scope.btx.txid, function(err, note) {
if (err || !note) { if (err) {
$log.debug(gettextCatalog.getString('Could not fetch transaction note')); $log.warn('Could not fetch transaction note ' + err);
return; return;
} }
if (!note) return;
$scope.btx.note = note; $scope.btx.note = note;
walletService.getTx(wallet, $scope.btx.txid, function(err, tx) { walletService.getTx(wallet, $scope.btx.txid, function(err, tx) {
@ -100,7 +103,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio
walletService.editTxNote(wallet, args, function(err, res) { walletService.editTxNote(wallet, args, function(err, res) {
if (err) { if (err) {
$log.debug('Could not save tx comment'); $log.debug('Could not save tx comment ' + err);
return; return;
} }
// This is only to refresh the current screen data // This is only to refresh the current screen data