mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
cli: prettify transfer
error
Let the user know what's wrong when cannot find suitable token.
This commit is contained in:
parent
31cf71fb62
commit
860d2ca7a7
1 changed files with 1 additions and 1 deletions
|
@ -445,7 +445,7 @@ func transferNEP5(ctx *cli.Context) error {
|
|||
fmt.Fprintln(ctx.App.ErrWriter, "Can't find matching token in the wallet. Querying RPC-node for balances.")
|
||||
token, err = getMatchingTokenRPC(ctx, c, from, ctx.String("token"))
|
||||
if err != nil {
|
||||
return cli.NewExitError(err, 1)
|
||||
return cli.NewExitError(fmt.Errorf("failed to get matching token: %w", err), 1)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue