routing: return proper error if encounter non ForwardingError in SendPayment

This commit is contained in:
Olaoluwa Osuntokun committed 2017-10-10 22:19:28 -07:00
1 parent 03d8399d0a
commit 51b072c4b5
1 file changed
+1 -1
+1 -1
View File
@@ -1213,7 +1213,7 @@ sendLoop:
fErr, ok := sendError.(*htlcswitch.ForwardingError)
if !ok {
return preImage, nil, err
return preImage, nil, sendError
}
errSource := fErr.ErrorSource