Skip to content

armgit / kanzo

Public Imported from GitHub
0

Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.

Report the SQLite error as the source of store errors

emanuele-em876f7261cc4a
diff --git a/src/store.rs b/src/store.rs
index bbae06c..01b23bf 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -33,7 +33,14 @@ impl fmt::Display for Error {
}
}
-impl std::error::Error for Error {}
+impl std::error::Error for Error {
+ fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
+ match self {
+ Error::Db(e) => Some(e),
+ _ => None,
+ }
+ }
+}
impl From<rusqlite::Error> for Error {
fn from(e: rusqlite::Error) -> Self {