mirror of https://github.com/BTCPrivate/copay.git
fix wallet import error message
This commit is contained in:
parent
50823ebd1c
commit
06c1640d99
|
@ -77,6 +77,8 @@ WalletFactory.prototype.fromEncryptedObj = function(base64, password) {
|
|||
WalletFactory.prototype.import = function(base64, password, cb) {
|
||||
var self = this;
|
||||
var w = self.fromEncryptedObj(base64, password);
|
||||
|
||||
if (!w) return cb(new Error('wrong password'));
|
||||
w.updateIndexes(function(err) {
|
||||
if (err) return cb(err);
|
||||
self.log('Indexes updated');
|
||||
|
|
Loading…
Reference in New Issue