diff options
| -rw-r--r-- | src/errors.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/errors.rs b/src/errors.rs index e541eda..1ce4502 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -7,8 +7,6 @@ use serde_json::json; /// All errors raised by the web app pub enum AppError { - /// Generic error, never called yet - Generic, /// Database error Database, /// Generic bad request. It is handled with a message value @@ -30,10 +28,6 @@ impl IntoResponse for AppError { /// ``` fn into_response(self) -> Response { let (status, error_message) = match self { - AppError::Generic => ( - StatusCode::INTERNAL_SERVER_ERROR, - "Generic error, can't find why".to_string(), - ), AppError::Database => ( StatusCode::INTERNAL_SERVER_ERROR, "Error with database connection".to_string(), |
