aboutsummaryrefslogtreecommitdiffstats
path: root/py_bindings/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'py_bindings/src/lib.rs')
-rw-r--r--py_bindings/src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/py_bindings/src/lib.rs b/py_bindings/src/lib.rs
index ed63029..aa79680 100644
--- a/py_bindings/src/lib.rs
+++ b/py_bindings/src/lib.rs
@@ -98,7 +98,9 @@ impl Config {
config.write_durability(tmp.write_durability.clone());
}
- let db = config.initialize().map_err(|e| PyException::new_err(e))?;
+ let db = config
+ .initialize()
+ .map_err(|e| PyException::new_err(e.to_string()))?;
Ok(DB { db })
}
}
@@ -177,7 +179,7 @@ impl DB {
self.db
.upsert(&log_db::Record::from(&values))
- .map_err(|e| PyException::new_err(e))?;
+ .map_err(|e| PyException::new_err(e.to_string()))?;
Ok(())
}