Skip to main content

Module error_page

Module error_page 

Source
Expand description

The development error page.

When something throws, a developer should see what happened, where, and what to do about it — not a blank 500. In production the same failure renders as a plain page with no internals, and the detail goes to the logs instead.

Structs§

Diagnostic
Everything the page knows about a failure.

Functions§

debug_enabled
render
Render a diagnostic, using the request (when available) for the detail panels and to decide between HTML and JSON.
response_for
Render an error into a response, honouring debug mode and content negotiation.
set_debug
Enable the detailed page. Set once during boot from app.debug.