feat: add shared RepoError module

This commit is contained in:
GW_MC
2026-07-05 05:29:10 +00:00
parent c7cc006212
commit 6d1df8dcca

View File

@@ -0,0 +1,13 @@
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum RepoError {
#[error("internal error: {0}")]
InternalError(String),
}
impl From<sea_orm::DbErr> for RepoError {
fn from(err: sea_orm::DbErr) -> Self {
match err {
other => RepoError::InternalError(other.to_string()),
}
}
}