Skip to content

Commit

Permalink
fix: Format error so context can show full chain (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoticTempest authored Jan 11, 2024
1 parent 0815884 commit 7a524a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/src/web/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl axum::response::IntoResponse for Error {
let status = self.status();
let message = match self {
Error::JsonExtractorRejection(json_rejection) => json_rejection.body_text(),
err => err.to_string(),
err => format!("{err:?}"),
};

(status, axum::Json(message)).into_response()
Expand Down

0 comments on commit 7a524a3

Please sign in to comment.