Skip to content

Commit

Permalink
offers: handle invoice request build failures more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalturtle committed Jul 17, 2024
1 parent 302fc05 commit 4a9e749
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lndk_offers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ impl OfferHandler {
&self.messenger_utils,
payment_id,
)
.unwrap()
.map_err(OfferError::BuildUIRFailure)?
.chain(network)
.unwrap()
.map_err(OfferError::BuildUIRFailure)?
.amount_msats(validated_amount)
.unwrap()
.map_err(OfferError::BuildUIRFailure)?
.build()
.map_err(OfferError::BuildUIRFailure)?;

Expand Down

0 comments on commit 4a9e749

Please sign in to comment.