fix error type if payment route was too expensive

This commit is contained in:
daywalker90 2026-08-09 17:25:47 +02:00
parent ae4e00967d
commit 101234e8ef

View file

@ -314,8 +314,8 @@ fn map_cln_error_to_nip47(
} else if !is_xpay && c == 206 {
(
nip47::NIP47Error {
code: nip47::ErrorCode::InsufficientBalance,
message: e.to_string(),
code: nip47::ErrorCode::PaymentFailed,
message: format!("Route too expensive: {e}"),
},
Some(id.to_owned()),
)