routing: print proper error msg on payment send fail
This commit is contained in:
parent
7ac50b060e
commit
1bb225a9bd
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user