Skip to main content

internal_error

Macro internal_error 

Source
macro_rules! internal_error {
    ($ctx:expr $(,)?) => { ... };
}
Expand description

A 500 that says nothing to the client.

There is no detail argument, and that is deliberate: the detail of an internal error is exactly what must not reach a client, and ErrorCode::is_sanitized would drop it anyway. Log the cause against the correlation id this carries.