From 729c84bee3cb88e490b5bef72f7a718dfe5288f6 Mon Sep 17 00:00:00 2001 From: ziggie Date: Fri, 18 Apr 2025 15:25:54 +0200 Subject: [PATCH] lncli: return more clear error msg for deletepayments --- cmd/commands/cmd_payments.go | 3 +++ 1 file changed, 3 insertions(+) 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)