mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-27 06:28:20 +01:00
routing: print proper error msg on payment send fail
This commit is contained in:
@@ -968,7 +968,7 @@ func (r *ChannelRouter) SendPayment(payment *LightningPayment) ([32]byte, *Route
|
|||||||
preImage, sendError = r.cfg.SendToSwitch(firstHop, htlcAdd)
|
preImage, sendError = r.cfg.SendToSwitch(firstHop, htlcAdd)
|
||||||
if sendError != nil {
|
if sendError != nil {
|
||||||
log.Errorf("Attempt to send payment %x failed: %v",
|
log.Errorf("Attempt to send payment %x failed: %v",
|
||||||
payment.PaymentHash, err)
|
payment.PaymentHash, sendError)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user