routing: return proper error if encounter non ForwardingError in SendPayment
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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