File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " multisql"
3
- version = " 0.3.4 "
3
+ version = " 0.3.5 "
4
4
authors = [" Kyran Gostelow <kyran@gostelow.me>" , " Taehoon Moon <taehoon.moon@outlook.com>" ]
5
5
edition = " 2021"
6
6
description = " MultiSQL"
Original file line number Diff line number Diff line change 12
12
13
13
#[ derive( Error , Serialize , Debug , PartialEq ) ]
14
14
pub enum SheetDatabaseError {
15
- #[ error( "FSError " ) ]
16
- FSError ,
15
+ #[ error( "File System Error: {0} " ) ]
16
+ FSError ( String ) ,
17
17
#[ error( "failed to parse column information" ) ]
18
18
FailedColumnParse ,
19
19
#[ error( "failed to create sheet" ) ]
@@ -38,7 +38,9 @@ impl SheetDatabase {
38
38
}
39
39
pub ( crate ) fn save ( & self ) -> Result < ( ) > {
40
40
writer:: xlsx:: write ( & self . book , Path :: new ( & self . path ) )
41
- . map_err ( |_| SheetDatabaseError :: FSError . into ( ) )
41
+ . map_err ( |e| format ! ( "{:?}" , e) )
42
+ . map_err ( SheetDatabaseError :: FSError )
43
+ . map_err ( crate :: Error :: SheetDatabase )
42
44
}
43
45
44
46
pub ( crate ) fn get_sheet_mut ( & mut self , sheet_name : & str ) -> Result < & mut Worksheet > {
You can’t perform that action at this time.
0 commit comments