diff options
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index 70b1a43..42477c0 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -9,6 +9,9 @@ pub enum ServiceError { #[error("Axum error: {0}")] Axum(#[from] axum::Error), + + #[error("SQL error: {0}")] + Sql(#[from] sqlx::Error), } pub type StringResult<T = &'static str> = Result<T, ServiceError>; |