diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/error.rs b/src/error.rs index c9fae0f..89fad78 100644 --- a/src/error.rs +++ b/src/error.rs @@ -11,9 +11,6 @@ pub enum Error { #[error("Migration error: {0}")] Migration(#[from] sqlx::migrate::MigrateError), - #[error("Route not found: {0}")] - RouteNotFound(axum::http::Uri), - #[error("API error: {0}")] Api(#[from] crate::api::error::Error), @@ -29,9 +26,6 @@ impl axum::response::IntoResponse for Error { match self { Self::Api(err) => err.into_response(), Self::Auth(err) => err.into_response(), - err @ Self::RouteNotFound(_) => { - (StatusCode::NOT_FOUND, err.to_string()).into_response() - } err => (StatusCode::INTERNAL_SERVER_ERROR, err.to_string()).into_response(), } } |