fix hw import2

This commit is contained in:
Matias Alejo Garcia 2016-12-28 17:50:53 -03:00
commit 57251c0b31
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
2 changed files with 11 additions and 5 deletions

View file

@ -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');
}
};