mirror of
https://github.com/daywalker90/cln-nip47.git
synced 2026-08-13 12:33:43 +02:00
fix error type if payment route was too expensive
This commit is contained in:
parent
0ba341b5e0
commit
ea0661bbd9
1 changed files with 2 additions and 2 deletions
|
|
@ -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()),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue