Skip to content

Commit

Permalink
Fix warning from newer rust
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyja committed Jan 20, 2024
1 parent 3906a75 commit 3f6dc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-axum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl IntoResponse for HttpError {
fn into_response(self) -> axum::response::Response {
(
StatusCode::INTERNAL_SERVER_ERROR,
Json(json!({ "error": "Things Broke"})),
Json(json!({ "error": "Things Broke", "details": self.0.to_string()})),
)
.into_response()
}
Expand Down

0 comments on commit 3f6dc56

Please sign in to comment.