Skip to content

Commit b3d496f

Browse files
committed
Merge branch 'release-0.6.30'
2 parents a7cccc8 + 40bdc25 commit b3d496f

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mostro-core"
3-
version = "0.6.29"
3+
version = "0.6.30"
44
edition = "2021"
55
license = "MIT"
66
authors = ["Francisco Calderón <negrunch@grunch.dev>"]

src/error.rs

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ pub enum ServiceError {
8989
InvalidDisputeStatus,
9090
InvalidPayload,
9191
UnexpectedError(String),
92+
EnvVarError(String),
93+
IOError(String),
9294
}
9395

9496
#[derive(Debug, PartialEq, Eq)]
@@ -143,30 +145,8 @@ impl fmt::Display for ServiceError {
143145
ServiceError::InvalidDisputeStatus => write!(f, "Invalid dispute status"),
144146
ServiceError::InvalidPayload => write!(f, "Invalid payload"),
145147
ServiceError::UnexpectedError(e) => write!(f, "Unexpected error: {}", e),
148+
ServiceError::EnvVarError(e) => write!(f, "Environment variable error: {}", e),
149+
ServiceError::IOError(e) => write!(f, "IO error: {}", e),
146150
}
147151
}
148152
}
149-
150-
// impl From<lightning_invoice::Bolt11ParseError> for MostroError {
151-
// fn from(_: lightning_invoice::Bolt11ParseError) -> Self {
152-
// MostroError::ParsingInvoiceError
153-
// }
154-
// }
155-
156-
// impl From<lightning_invoice::ParseOrSemanticError> for MostroError {
157-
// fn from(_: lightning_invoice::ParseOrSemanticError) -> Self {
158-
// MostroError::ParsingInvoiceError
159-
// }
160-
// }
161-
162-
// impl From<std::num::ParseIntError> for MostroError {
163-
// fn from(_: std::num::ParseIntError) -> Self {
164-
// MostroError::ParsingNumberError
165-
// }
166-
// }
167-
168-
// impl From<reqwest::Error> for MostroError {
169-
// fn from(_: reqwest::Error) -> Self {
170-
// MostroError::NoAPIResponse
171-
// }
172-
// }

0 commit comments

Comments
 (0)