aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2017-06-27 07:35:47 +0800
committerGitHub <noreply@github.com>2017-06-27 07:35:47 +0800
commit48f7cff8c0e765e85532c860c5f3061ca1d6deb7 (patch)
treeeac91e50b77c6452faebed9324a187003a5b2711 /app
parent62c4501160b23e526ea4a5d496182666273fbf66 (diff)
parent8194b398f6a2f3756e551c068a2dc8c150495c7d (diff)
downloadtangerine-wallet-browser-48f7cff8c0e765e85532c860c5f3061ca1d6deb7.tar
tangerine-wallet-browser-48f7cff8c0e765e85532c860c5f3061ca1d6deb7.tar.gz
tangerine-wallet-browser-48f7cff8c0e765e85532c860c5f3061ca1d6deb7.tar.bz2
tangerine-wallet-browser-48f7cff8c0e765e85532c860c5f3061ca1d6deb7.tar.lz
tangerine-wallet-browser-48f7cff8c0e765e85532c860c5f3061ca1d6deb7.tar.xz
tangerine-wallet-browser-48f7cff8c0e765e85532c860c5f3061ca1d6deb7.tar.zst
tangerine-wallet-browser-48f7cff8c0e765e85532c860c5f3061ca1d6deb7.zip
Merge pull request #1678 from MetaMask/i1584-seederror
Display error when seed phrase is invalid
Diffstat (limited to 'app')
-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()