mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-26 13:42:49 +02:00
lncli: return more clear error msg for deletepayments
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user