routing: return proper error if encounter non ForwardingError in SendPayment

This commit is contained in:
Olaoluwa Osuntokun 2017-10-10 22:16:22 -07:00
parent 03d8399d0a
commit 51b072c4b5
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -1213,7 +1213,7 @@ sendLoop:
fErr, ok := sendError.(*htlcswitch.ForwardingError)
if !ok {
return preImage, nil, err
return preImage, nil, sendError
}
errSource := fErr.ErrorSource