Correct error returned when retry_payment doesn't have a payment

This commit is contained in:
Matt Corallo 2021-10-05 22:28:32 +00:00
parent 928bfb12d2
commit a58c617c42

View 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)),
}))
}
};