Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node should halt on password error #9

Closed
adlerjohn opened this issue Jan 4, 2021 · 1 comment · Fixed by #12
Closed

Node should halt on password error #9

adlerjohn opened this issue Jan 4, 2021 · 1 comment · Fixed by #12
Labels
bug Something isn't working

Comments

@adlerjohn
Copy link
Contributor

When entering a less-than-8 character passphrase, the node should halt immediately instead of continuing until a different error is hit.

✔ Please enter a Fuel wallet encryption passphrase … ***
Error: password must be more than 8 characters
    at wallet (/snapshot/client/src/wallet.js:68:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)
fuel-2021-01-04 7:36:35 PM : Wallet/operator address used: undefined
fuel-2021-01-04 7:36:35 PM : DB: default local db selected.
{ Error: invalid private key (arg="privateKey", reason="exactly 32 bytes required", value="[REDACTED]", length=10, type="string", version=4.0.48)
    at Object.throwError (/snapshot/client/node_modules/ethers/errors.js:76:17)
    at new SigningKey (/snapshot/client/node_modules/ethers/utils/signing-key.js:50:20)
    at new Wallet (/snapshot/client/node_modules/ethers/wallet.js:44:62)
    at config (/snapshot/client/src/config.local.js:178:24)
    at app (/snapshot/client/src/app.js:74:24)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  reason: 'exactly 32 bytes required',
  code: 'INVALID_ARGUMENT',
  arg: 'privateKey',
  value: '[REDACTED]',
  length: 10,
  type: 'string' }
attempting exit
@adlerjohn adlerjohn added the bug Something isn't working label Jan 4, 2021
@SilentCicero
Copy link
Member

Better error handing will be available in: #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants