summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2026-03-21 11:56:19 +0100
committerWriterV2 <primary-v2@protonmail.com>2026-03-21 11:56:19 +0100
commitf491ed95a3bc82c31c70b0f38ed841408576ec0c (patch)
tree1cfc9a957e150ded75c93fad54028a18640ba7c2 /src/error.rs
parent74db93c431ebc02b1dc43ec12714007d005a9704 (diff)
Purge + prepare for local website builder
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/error.rs b/src/error.rs
deleted file mode 100644
index 72378ae..0000000
--- a/src/error.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-use axum::http::StatusCode;
-use axum::response::IntoResponse;
-
-pub struct AppError(anyhow::Error);
-
-impl IntoResponse for AppError {
- fn into_response(self) -> axum::response::Response {
- (
- StatusCode::INTERNAL_SERVER_ERROR,
- format!("Something went wrong: {}", self.0),
- )
- .into_response()
- }
-}
-
-impl<E> From<E> for AppError
-where
- E: Into<anyhow::Error>,
-{
- fn from(err: E) -> Self {
- Self(err.into())
- }
-}