diff --git a/src/platform/http1/http1_server.rs b/src/platform/http1/http1_server.rs index 960bfb6..e184d8e 100644 --- a/src/platform/http1/http1_server.rs +++ b/src/platform/http1/http1_server.rs @@ -59,7 +59,8 @@ where } fn handle_error(error: anyhow::Error) -> Response> { - let content = HyperBytes::from(format!("{}", error)); + eprintln!("[500] {error:#}"); + let content = HyperBytes::from("Internal Server Error"); let body = Full::new(content).map_err(std::io::Error::other).boxed(); match Response::builder().status(500).body(body) { Ok(response) => response,