mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-09 12:22:38 +01: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 {
|
if err != nil {
|
||||||
return fmt.Errorf("error deleting payments: %w", err)
|
return fmt.Errorf("error deleting payments: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default:
|
||||||
|
return fmt.Errorf("either --all or --payment_hash must be set")
|
||||||
}
|
}
|
||||||
|
|
||||||
printJSON(resp)
|
printJSON(resp)
|
||||||
|
|||||||
Reference in New Issue
Block a user