Skip to content

Commit

Permalink
log error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodingwizard committed Jul 26, 2024
1 parent f138221 commit b079d9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub struct AppError(anyhow::Error);
// Tell axum how to convert `AppError` into a response.
impl IntoResponse for AppError {
fn into_response(self) -> Response {
println!("Returning Internal Server Error: {}", self.0);
(
StatusCode::INTERNAL_SERVER_ERROR,
format!("Internal Server Error: {}", self.0),
Expand Down

0 comments on commit b079d9a

Please sign in to comment.