rpcserver+router: log terminal sendPayment error

This commit is contained in:
Johan T. Halseth authored and Olaoluwa Osuntokun committed 2019-07-01 16:22:57 -07:00
1 parent 108f25dc89
commit 8b83f03308
2 files changed
+5

No files matched your search

+2
View File
@@ -3127,6 +3127,8 @@ func (r *rpcServer) dispatchPaymentIntent(
// If the route failed, then we'll return a nil save err, but a non-nil
// routing err.
if routerErr != nil {
rpcsLog.Warnf("Unable to send payment: %v", routerErr)
return &paymentIntentResponse{
Err: routerErr,
}, nil