mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-29 15:36:34 +01:00
cmd/lncli: properly display errors when sending payments
This commit is contained in:
@@ -877,9 +877,11 @@ func sendPayment(ctx *cli.Context) error {
|
|||||||
paymentStream.CloseSend()
|
paymentStream.CloseSend()
|
||||||
|
|
||||||
printJSON(struct {
|
printJSON(struct {
|
||||||
|
E string `json:"payment_error"`
|
||||||
P string `json:"payment_preimage"`
|
P string `json:"payment_preimage"`
|
||||||
R *lnrpc.Route `json:"payment_route"`
|
R *lnrpc.Route `json:"payment_route"`
|
||||||
}{
|
}{
|
||||||
|
E: resp.PaymentError,
|
||||||
P: hex.EncodeToString(resp.PaymentPreimage),
|
P: hex.EncodeToString(resp.PaymentPreimage),
|
||||||
R: resp.PaymentRoute,
|
R: resp.PaymentRoute,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user