From 1bb225a9bdbc9ddcf2bd1cc99e50ed87e572bde7 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 14 Apr 2017 17:12:04 -0700 Subject: [PATCH] routing: print proper error msg on payment send fail --- routing/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/router.go b/routing/router.go index 1aa9d58bb..1353b99e5 100644 --- a/routing/router.go +++ b/routing/router.go @@ -968,7 +968,7 @@ func (r *ChannelRouter) SendPayment(payment *LightningPayment) ([32]byte, *Route preImage, sendError = r.cfg.SendToSwitch(firstHop, htlcAdd) if sendError != nil { log.Errorf("Attempt to send payment %x failed: %v", - payment.PaymentHash, err) + payment.PaymentHash, sendError) continue }