]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Correct error returned when `retry_payment` doesn't have a payment 2021-10-init-fail-payment-retry-leak
authorMatt Corallo <git@bluematt.me>
Tue, 5 Oct 2021 22:28:32 +0000 (22:28 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 7 Oct 2021 22:27:58 +0000 (22:27 +0000)
lightning/src/ln/channelmanager.rs

index ad8603312fc714243a4129acf381d5b4a7332224..152de61fd8e56719f116393c44f55c9144773b36 100644 (file)
@@ -2178,7 +2178,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> 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)),
                                }))
                        }
                };