diff options
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs index 19e0a8a..23ad8fa 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -14,7 +14,11 @@ pub enum ServiceError { #[error("Not Found")] NotFound, #[error("Axum: {0}")] - Axum(#[from] axum::Error) + Axum(#[from] axum::Error), + #[error("SQL: {0}")] + Sql(#[from] sqlx::Error), + #[error("Bcrypt: {0}")] + Bcrypt(#[from] bcrypt::BcryptError), } pub type StringResult<T = String> = Result<T, ServiceError>; |