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;