Skip to content

Commit

Permalink
Fix Display trait implementation for Error.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmitr committed Mar 1, 2024
1 parent 2f33f90 commit d312498
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ impl fmt::Display for Error {
Self::InvalidInvoice => write!(f, "The given invoice is invalid."),
Self::InvalidChannelId => write!(f, "The given channel ID is invalid."),
Self::InvalidNetwork => write!(f, "The given network is invalid."),
Self::InvalidCustomTlv => write!(f, "The given custom TLVs are invalid."),
Self::DuplicatePayment => {
write!(f, "A payment with the given hash has already been initiated.")
},
Expand Down

0 comments on commit d312498

Please sign in to comment.