mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-09 09:15:35 +02:00
routing: return proper error if encounter non ForwardingError in SendPayment
This commit is contained in:
@@ -1213,7 +1213,7 @@ sendLoop:
|
||||
|
||||
fErr, ok := sendError.(*htlcswitch.ForwardingError)
|
||||
if !ok {
|
||||
return preImage, nil, err
|
||||
return preImage, nil, sendError
|
||||
}
|
||||
|
||||
errSource := fErr.ErrorSource
|
||||
|
Reference in New Issue
Block a user