Skip to content

Commit 3f6dc56

Browse files
committed
Fix warning from newer rust
1 parent 3906a75 commit 3f6dc56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-axum/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl IntoResponse for HttpError {
214214
fn into_response(self) -> axum::response::Response {
215215
(
216216
StatusCode::INTERNAL_SERVER_ERROR,
217-
Json(json!({ "error": "Things Broke"})),
217+
Json(json!({ "error": "Things Broke", "details": self.0.to_string()})),
218218
)
219219
.into_response()
220220
}

0 commit comments

Comments
 (0)