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)
|
||||
if !ok {
|
||||
return preImage, nil, err
|
||||
return preImage, nil, sendError
|
||||
}
|
||||
|
||||
errSource := fErr.ErrorSource
|
||||
|
Loading…
Reference in New Issue
Block a user