Skip to content

Commit 1f82785

Browse files
authored
makes errors more transparent (#22)
1 parent 04dc647 commit 1f82785

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/error.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ use thiserror::Error;
33

44
#[derive(Error, Debug)]
55
pub enum DmiError {
6-
#[error("IO error")]
6+
#[error("IO error: {0}")]
77
Io(#[from] io::Error),
8-
#[error("Image-processing error")]
8+
#[error("Image-processing error: {0}")]
99
Image(#[from] image::error::ImageError),
10-
#[error("FromUtf8 error")]
10+
#[error("FromUtf8 error: {0}")]
1111
FromUtf8(#[from] std::string::FromUtf8Error),
12-
#[error("ParseInt error")]
12+
#[error("ParseInt error: {0}")]
1313
ParseInt(#[from] std::num::ParseIntError),
14-
#[error("ParseFloat error")]
14+
#[error("ParseFloat error: {0}")]
1515
ParseFloat(#[from] std::num::ParseFloatError),
1616
#[error("Invalid chunk type (byte outside the range `A-Za-z`): {chunk_type:?}")]
1717
InvalidChunkType { chunk_type: [u8; 4] },

0 commit comments

Comments
 (0)