routing: print proper error msg on payment send fail

This commit is contained in:
Olaoluwa Osuntokun 2017-04-14 17:12:04 -07:00
parent 7ac50b060e
commit 1bb225a9bd
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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
}