From a824a2a8553b776c90a6e8333a83b9e619e8e8da Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 4 Jul 2017 15:55:26 -0700 Subject: [PATCH] cmd/lncli: properly display errors when sending payments --- cmd/lncli/commands.go | 2 ++ 1 file changed, 2 insertions(+) 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, })