Skip to content

Commit 7f86b36

Browse files
committed
Add HrnParsingFailed Error variant
1 parent 1525255 commit 7f86b36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/error.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ pub enum Error {
120120
LiquiditySourceUnavailable,
121121
/// The given operation failed due to the LSP's required opening fee being too high.
122122
LiquidityFeeTooHigh,
123+
/// Parsing a Human-Readable Name has failed
124+
HrnParsingFailed,
123125
}
124126

125127
impl fmt::Display for Error {
@@ -193,6 +195,9 @@ impl fmt::Display for Error {
193195
Self::LiquidityFeeTooHigh => {
194196
write!(f, "The given operation failed due to the LSP's required opening fee being too high.")
195197
},
198+
Self::HrnParsingFailed => {
199+
write!(f, "Failed to parse a human-readable name.")
200+
},
196201
}
197202
}
198203
}

0 commit comments

Comments
 (0)