From: Matt Corallo Date: Tue, 5 Oct 2021 22:28:32 +0000 (+0000) Subject: Correct error returned when `retry_payment` doesn't have a payment X-Git-Tag: v0.0.102~12^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a58c617c4291076eb68d910ac59e577743acce8c;p=rust-lightning Correct error returned when `retry_payment` doesn't have a payment --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index ad860331..152de61f 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)), })) } };