diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index e64f415c8..7b8aeaf83 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -877,9 +877,11 @@ func sendPayment(ctx *cli.Context) error { paymentStream.CloseSend() printJSON(struct { + E string `json:"payment_error"` P string `json:"payment_preimage"` R *lnrpc.Route `json:"payment_route"` }{ + E: resp.PaymentError, P: hex.EncodeToString(resp.PaymentPreimage), R: resp.PaymentRoute, })