Skip to content

Commit da05085

Browse files
committed
f Use InvoiceRequestCreationFailed error in refund flow
1 parent f3384d8 commit da05085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/payment/bolt12.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ impl Bolt12Payment {
275275
pub fn request_refund(&self, refund: &Refund) -> Result<Bolt12Invoice, Error> {
276276
self.channel_manager.request_refund_payment(refund).map_err(|e| {
277277
log_error!(self.logger, "Failed to request refund payment: {:?}", e);
278-
Error::InvalidRefund
278+
Error::InvoiceRequestCreationFailed
279279
})
280280
}
281281

0 commit comments

Comments
 (0)