From 685711aca4a5dc603bbbc751d4e3ca410853a56d Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Fri, 1 Apr 2016 14:02:02 -0700 Subject: Call back with wallet restore errors --- app/scripts/lib/idStore.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/scripts/lib') diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index 1bc1ebcb2..13acd7a82 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -227,7 +227,11 @@ IdentityStore.prototype._createIdmgmt = function(password, seed, entropy, cb){ var serializedKeystore = configManager.getWallet() if (seed) { - keyStore = this._restoreFromSeed(password, seed, derivedKey) + try { + keyStore = this._restoreFromSeed(password, seed, derivedKey) + } catch (e) { + return cb(e) + } // returning user, recovering from storage } else if (serializedKeystore) { -- cgit v1.2.3