better messages in advance transaction history options
This commit is contained in:
parent
48654569d7
commit
42289004c6
2 changed files with 20 additions and 11 deletions
|
|
@ -28,8 +28,14 @@ angular.module('copayApp.controllers').controller('preferencesHistory',
|
|||
$log.debug('Generating CSV from History');
|
||||
getHistory(function(err, txs) {
|
||||
if (err || lodash.isEmpty(txs)) {
|
||||
if (err) $log.warn('Failed to generate CSV:', err);
|
||||
else $log.warn('Failed to generate CSV: no transactions');
|
||||
if (err) {
|
||||
$log.warn('Failed to generate CSV:', err);
|
||||
$scope.err = err;
|
||||
}
|
||||
else {
|
||||
$log.warn('Failed to generate CSV: no transactions');
|
||||
$scope.err = 'no transactions';
|
||||
}
|
||||
if (cb) return cb(err);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue