mirror of https://github.com/BTCPrivate/copay.git
Handle TREZOR error
This commit is contained in:
parent
90967e9652
commit
9918f95289
|
@ -39,8 +39,9 @@ angular.module('copayApp.services')
|
||||||
var opts = {};
|
var opts = {};
|
||||||
root.getEntropySource(account, function(data) {
|
root.getEntropySource(account, function(data) {
|
||||||
if (!data.success) {
|
if (!data.success) {
|
||||||
$log.warn(data.message);
|
var err = data.message || data.error || 'TREZOR Error';
|
||||||
return callback(data.message);
|
$log.warn(err);
|
||||||
|
return callback(err);
|
||||||
}
|
}
|
||||||
opts.entropySource = data.entropySource;
|
opts.entropySource = data.entropySource;
|
||||||
$log.debug('Waiting TREZOR to settle...');
|
$log.debug('Waiting TREZOR to settle...');
|
||||||
|
|
Loading…
Reference in New Issue