diff options
Diffstat (limited to 'server/src/errors.rs')
-rw-r--r-- | server/src/errors.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/errors.rs b/server/src/errors.rs index b5f124b..cf59d0c 100644 --- a/server/src/errors.rs +++ b/server/src/errors.rs @@ -5,14 +5,14 @@ use axum::{ }; use serde_json::json; -pub enum Error { +pub enum AppError { Generic, } -impl IntoResponse for Error { +impl IntoResponse for AppError { fn into_response(self) -> Response { let (status, error_message) = match self { - Error::Generic => ( + AppError::Generic => ( StatusCode::INTERNAL_SERVER_ERROR, "Generic error, can't find why", ), |