Fix error message for invalid seed words.

feature/default_network_editable
Kevin Serrano 8 years ago
parent 8b5b2d8329
commit 92da8bc578
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 2
      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()

Loading…
Cancel
Save