mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-26 19:43:48 +00:00
cli/sc: tune error messages for forced save/send
Here we're either saving or sending a transaction (depending on `out`), but not both. Refs. #2664.
This commit is contained in:
parent
314cd3341b
commit
4b136e8ab1
1 changed files with 4 additions and 7 deletions
|
@ -702,14 +702,11 @@ func invokeWithArgs(ctx *cli.Context, acc *wallet.Account, wall *wallet.Wallet,
|
|||
return sender, cli.NewExitError(errText, 1)
|
||||
}
|
||||
|
||||
action := "save"
|
||||
process := "Saving"
|
||||
action := "send"
|
||||
process := "Sending"
|
||||
if out != "" {
|
||||
action += "and send"
|
||||
process += "and sending"
|
||||
} else {
|
||||
action = "send"
|
||||
process = "Sending"
|
||||
action = "save"
|
||||
process = "Saving"
|
||||
}
|
||||
if !ctx.Bool("force") {
|
||||
return sender, cli.NewExitError(errText+".\nUse --force flag to "+action+" the transaction anyway.", 1)
|
||||
|
|
Loading…
Reference in a new issue