fix hw import2
This commit is contained in:
parent
ae44775cf5
commit
57251c0b31
2 changed files with 11 additions and 5 deletions
|
|
@ -19,7 +19,11 @@ angular.module('copayApp.services')
|
|||
|
||||
root.getXPubKey = function(path, callback) {
|
||||
$log.debug('TREZOR deriving xPub path:', path);
|
||||
TrezorConnect.getXPubKey(path, callback);
|
||||
try {
|
||||
TrezorConnect.getXPubKey(path, callback);
|
||||
} catch (e) {
|
||||
callback('Error connecting Trezor');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue