diff --git a/cli/wallet/wallet.go b/cli/wallet/wallet.go index 82e165925..89df95be0 100644 --- a/cli/wallet/wallet.go +++ b/cli/wallet/wallet.go @@ -524,7 +524,7 @@ func removeAccount(ctx *cli.Context) error { addr := ctx.Generic("address").(*flags.Address) if !addr.IsSet { - cli.NewExitError("valid account address must be provided", 1) + return cli.NewExitError("valid account address must be provided", 1) } acc := wall.GetAccount(addr.Uint160()) if acc == nil {