improve error message
This commit is contained in:
parent
50287bba2f
commit
8d9b937806
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue