Handle TREZOR error

This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-05 15:57:59 -03:00 committed by Matias Alejo Garcia
parent 90967e9652
commit 9918f95289
1 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,9 @@ angular.module('copayApp.services')
var opts = {};
root.getEntropySource(account, function(data) {
if (!data.success) {
$log.warn(data.message);
return callback(data.message);
var err = data.message || data.error || 'TREZOR Error';
$log.warn(err);
return callback(err);
}
opts.entropySource = data.entropySource;
$log.debug('Waiting TREZOR to settle...');