Skip to content

Commit 885ff46

Browse files
committed
chore: remove all unwraps and return meaningful errors
1 parent ea830e7 commit 885ff46

File tree

2 files changed

+127
-52
lines changed

2 files changed

+127
-52
lines changed

acdc-parser/src/error.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ pub enum Error {
6767
#[error("Unable to retrieve HTTP response: {0}")]
6868
#[serde(skip_deserializing)]
6969
HttpRequest(#[from] reqwest::Error),
70+
71+
#[error("Could not convert from int: {0}")]
72+
#[serde(skip_deserializing)]
73+
TryFromIntError(#[from] std::num::TryFromIntError),
7074
}
7175

7276
#[derive(Debug, PartialEq, Deserialize)]

0 commit comments

Comments
 (0)