From a58c617c4291076eb68d910ac59e577743acce8c Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 5 Oct 2021 22:28:32 +0000 Subject: [PATCH] Correct error returned when `retry_payment` doesn't have a payment --- lightning/src/ln/channelmanager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index ad8603312..152de61fd 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -2178,7 +2178,7 @@ impl ChannelMana } } else { return Err(PaymentSendFailure::ParameterError(APIError::APIMisuseError { - err: "Payment with ID {} not found".to_string() + err: format!("Payment with ID {} not found", log_bytes!(payment_id.0)), })) } }; -- 2.39.5