Skip to content

Commit ad26eab

Browse files
committed
0.3.5
Slightly better sheet errors
1 parent d19c3a2 commit ad26eab

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "multisql"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
authors = ["Kyran Gostelow <kyran@gostelow.me>", "Taehoon Moon <taehoon.moon@outlook.com>"]
55
edition = "2021"
66
description = "MultiSQL"

src/databases/sheet/mod.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use {
1212

1313
#[derive(Error, Serialize, Debug, PartialEq)]
1414
pub enum SheetDatabaseError {
15-
#[error("FSError")]
16-
FSError,
15+
#[error("File System Error: {0}")]
16+
FSError(String),
1717
#[error("failed to parse column information")]
1818
FailedColumnParse,
1919
#[error("failed to create sheet")]
@@ -38,7 +38,9 @@ impl SheetDatabase {
3838
}
3939
pub(crate) fn save(&self) -> Result<()> {
4040
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)
4244
}
4345

4446
pub(crate) fn get_sheet_mut(&mut self, sheet_name: &str) -> Result<&mut Worksheet> {

0 commit comments

Comments
 (0)