diff --git a/cmd/commands/cmd_payments.go b/cmd/commands/cmd_payments.go index 8b93f9458..45d64796e 100644 --- a/cmd/commands/cmd_payments.go +++ b/cmd/commands/cmd_payments.go @@ -1842,6 +1842,9 @@ func deletePayments(ctx *cli.Context) error { if err != nil { return fmt.Errorf("error deleting payments: %w", err) } + + default: + return fmt.Errorf("either --all or --payment_hash must be set") } printJSON(resp)