wayver's git archive


a simple self-hosted git server
git clone https://git.wayver.dev/bile

Commit: db2bc30f716095872b4ea33adafe072c0a8a7242 (tree)
Parent: 375565f690b958e08f589a7fee998ad5f47a70d0 (tree)
Author: wayverd
Date: 2026 M02 17, Tue 21:59:43 -0500
2 files changed; 8 insertions 1 deletions
small fixes

actually print web error, and remove clippy inline_always for askama filter_fn code

diff --git a/src/utils/error.rs b/src/utils/error.rs
index 933aff4..a21e323 100644
--- a/src/utils/error.rs
+++ b/src/utils/error.rs
@@ -1,6 +1,7 @@
 use std::{convert, fmt};
 
 use axum::response;
+use http::StatusCode;
 use tracing_error::SpanTrace;
 
 pub type Result<T, E = Error> = std::result::Result<T, E>;
@@ -68,7 +69,11 @@ impl tracing_error::ExtractSpanTrace for Error {
 
 impl response::IntoResponse for Error {
     fn into_response(self) -> response::Response {
-        todo!()
+        super::Error::Failure {
+            status: StatusCode::INTERNAL_SERVER_ERROR,
+            err: self,
+        }
+        .into_response()
     }
 }
 
diff --git a/src/utils/filters.rs b/src/utils/filters.rs
index e1a6076..fbada2b 100644
--- a/src/utils/filters.rs
+++ b/src/utils/filters.rs
@@ -1,3 +1,5 @@
+#![allow(clippy::inline_always, reason = "generated by askama filter_fn")]
+
 use git2::{Commit, Signature, Time};
 use jiff::{
     Timestamp,