Skip to content

Commit f8b89a1

Browse files
committed
Correct error returned when retry_payment doesn't have a payment
1 parent 82a7388 commit f8b89a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
21782178
}
21792179
} else {
21802180
return Err(PaymentSendFailure::ParameterError(APIError::APIMisuseError {
2181-
err: "Payment with ID {} not found".to_string()
2181+
err: format!("Payment with ID {} not found", log_bytes!(payment_id.0)),
21822182
}))
21832183
}
21842184
};

0 commit comments

Comments
 (0)