From 833cb4069426b5d3c6f39e41934ac2ca44211b0f Mon Sep 17 00:00:00 2001 From: Antonio Souza Date: Tue, 27 Jan 2026 04:50:35 -0500 Subject: [PATCH] Fix InternalServerError docs to match current behavior (#3640) Signed-off-by: Antonio Souza --- axum-extra/src/response/error_response.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/axum-extra/src/response/error_response.rs b/axum-extra/src/response/error_response.rs index 97558c7a..6a503e92 100644 --- a/axum-extra/src/response/error_response.rs +++ b/axum-extra/src/response/error_response.rs @@ -6,9 +6,9 @@ use tracing::error; /// Convenience response to create an error response from a non-[`IntoResponse`] error /// /// This provides a method to quickly respond with an error that does not implement -/// the `IntoResponse` trait itself. This type should only be used for debugging purposes or internal -/// facing applications, as it includes the full error chain with descriptions, -/// thus leaking information that could possibly be sensitive. +/// the `IntoResponse` trait itself. Error details are logged using [`tracing::error!`] +/// and a generic `500 Internal Server Error` response is returned to the client without +/// exposing error details. /// /// ```rust /// use axum_extra::response::InternalServerError;