Skip to content

Commit

Permalink
match both cln and lnd error message for not enough funds
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Jan 19, 2024
1 parent ead11ab commit 4b2e45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsps2/intercept_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func (i *Interceptor) ensureChannelOpen(payment *paymentState) {
)

code := common.FAILURE_UNKNOWN_NEXT_PEER
if strings.Contains(err.Error(), "not enough funds") {
if strings.Contains(err.Error(), "not enough") {
code = common.FailureTemporaryChannelFailure(&chanUpdate)
}

Expand Down

0 comments on commit 4b2e45f

Please sign in to comment.