aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-06-27 07:14:35 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-06-27 07:14:35 +0800
commit92da8bc57889bb584d4665700072e9e8d8cdb20b (patch)
treedfb78d8499d844c242f039499e525d317d3e6257
parent8b5b2d832995ca4b928c47abebd7e5476ac71e6a (diff)
downloadtangerine-wallet-browser-92da8bc57889bb584d4665700072e9e8d8cdb20b.tar
tangerine-wallet-browser-92da8bc57889bb584d4665700072e9e8d8cdb20b.tar.gz
tangerine-wallet-browser-92da8bc57889bb584d4665700072e9e8d8cdb20b.tar.bz2
tangerine-wallet-browser-92da8bc57889bb584d4665700072e9e8d8cdb20b.tar.lz
tangerine-wallet-browser-92da8bc57889bb584d4665700072e9e8d8cdb20b.tar.xz
tangerine-wallet-browser-92da8bc57889bb584d4665700072e9e8d8cdb20b.tar.zst
tangerine-wallet-browser-92da8bc57889bb584d4665700072e9e8d8cdb20b.zip
Fix error message for invalid seed words.
-rw-r--r--app/scripts/keyring-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 5b3c80e40..2edc8060e 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -87,7 +87,7 @@ class KeyringController extends EventEmitter {
}
if (!bip39.validateMnemonic(seed)) {
- return Promise.reject('Seed phrase is invalid.')
+ return Promise.reject(new Error('Seed phrase is invalid.'))
}
this.clearKeyrings()