From 51b072c4b59932a8de568b46367f1439c0b586df Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 10 Oct 2017 22:16:22 -0700 Subject: [PATCH] routing: return proper error if encounter non ForwardingError in SendPayment --- routing/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/router.go b/routing/router.go index a8a7a01af..b3e0ce14f 100644 --- a/routing/router.go +++ b/routing/router.go @@ -1213,7 +1213,7 @@ sendLoop: fErr, ok := sendError.(*htlcswitch.ForwardingError) if !ok { - return preImage, nil, err + return preImage, nil, sendError } errSource := fErr.ErrorSource