mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-21 00:00:14 +02:00
Fix InternalServerError docs to match current behavior (#3640)
Signed-off-by: Antonio Souza <[email protected]>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user