aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-04-02 05:05:05 +0800
committerDan Finlay <somniac@me.com>2016-04-02 05:05:05 +0800
commita5b8e4448ec7fca74da35bb9798d7fa500994616 (patch)
tree7d20d46622619620d79e75f6235be728616c541e
parent888ade6a1d0fde9fe7a029124007d08dc337578f (diff)
parent685711aca4a5dc603bbbc751d4e3ca410853a56d (diff)
downloadtangerine-wallet-browser-a5b8e4448ec7fca74da35bb9798d7fa500994616.tar
tangerine-wallet-browser-a5b8e4448ec7fca74da35bb9798d7fa500994616.tar.gz
tangerine-wallet-browser-a5b8e4448ec7fca74da35bb9798d7fa500994616.tar.bz2
tangerine-wallet-browser-a5b8e4448ec7fca74da35bb9798d7fa500994616.tar.lz
tangerine-wallet-browser-a5b8e4448ec7fca74da35bb9798d7fa500994616.tar.xz
tangerine-wallet-browser-a5b8e4448ec7fca74da35bb9798d7fa500994616.tar.zst
tangerine-wallet-browser-a5b8e4448ec7fca74da35bb9798d7fa500994616.zip
Merge pull request #86 from MetaMask/CallbackRestoreErrors
Call back with wallet restore errors
-rw-r--r--app/scripts/lib/idStore.js6
1 files changed, 5 insertions, 1 deletions
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) {