Skip to content

wrong wallet address cause crash, or we should display graceful error message #66

@mave99a

Description

@mave99a

wrong wallet address cause crash, or we should display graceful error message

maos-MacBook-Pro:test mao$ forge me
✖ cache wallet read failed!
? Please enter wallet address: 1
? Please enter passphrase of the wallet: 123456
(node:3524) UnhandledPromiseRejectionWarning: Error: 2 UNKNOWN: Internal Server Error
    at Object.exports.createStatusError (/usr/local/lib/node_modules/@arcblock/forge-cli/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/usr/local/lib/node_modules/@arcblock/forge-cli/node_modules/grpc/src/client_interceptors.js:1204:28)
    at InterceptingListener._callNext (/usr/local/lib/node_modules/@arcblock/forge-cli/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/usr/local/lib/node_modules/@arcblock/forge-cli/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/usr/local/lib/node_modules/@arcblock/forge-cli/node_modules/grpc/src/client_interceptors.js:845:24)
(node:3524) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3524) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions