mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-28 01:32:27 +02:00
routing: return proper error if encounter non ForwardingError in SendPayment
This commit is contained in:
parent
03d8399d0a
commit
51b072c4b5
@ -1213,7 +1213,7 @@ sendLoop:
|
|||||||
|
|
||||||
fErr, ok := sendError.(*htlcswitch.ForwardingError)
|
fErr, ok := sendError.(*htlcswitch.ForwardingError)
|
||||||
if !ok {
|
if !ok {
|
||||||
return preImage, nil, err
|
return preImage, nil, sendError
|
||||||
}
|
}
|
||||||
|
|
||||||
errSource := fErr.ErrorSource
|
errSource := fErr.ErrorSource
|
||||||
|
Loading…
x
Reference in New Issue
Block a user