Skip to main content

render

Function render 

Source
pub fn render(err: &CliError, verbose: bool) -> String
Expand description

Renders the error to a human-friendly message using the real process argv for did-you-mean suggestions. Use render_with_argv from tests where the simulated argv differs from the process argv.

Verbose mode appends the underlying body / source where available.