Skip to main content

render

Function render 

Source
pub fn render(err: &Error, env: &RenderEnv) -> String
Expand description

Render an error chain for the user (spec 0025 §3).

If the chain contains a CardError or YbError, its explanation is shown: as the headline when it stands alone, or as Cause: / Try: under the outer context messages. Other errors render as {e:#}.