Some tweaks to request deletion

This commit is contained in:
Gregory Schier
2024-10-23 06:27:38 -07:00
parent ec850f2cf0
commit c5e6d6f2cb
5 changed files with 54 additions and 22 deletions

View File

@@ -6,8 +6,10 @@ pub enum Error {
SqlError(#[from] rusqlite::Error),
#[error("JSON error: {0}")]
JsonError(#[from] serde_json::Error),
#[error("Model not found {0}")]
ModelNotFound(String),
#[error("unknown error")]
Unknown,
}
pub type Result<T> = std::result::Result<T, Error>;
pub type Result<T> = std::result::Result<T, Error>;