File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ use thiserror::Error;
33
44#[ derive( Error , Debug ) ]
55pub 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 ] } ,
You can’t perform that action at this time.
0 commit comments