Skip to main content

render_error

Function render_error 

Source
pub fn render_error(err: &Error, json_mode: bool)
Expand description

Render an error to stderr in either text or JSON format.

Args:

  • err: The error to render.
  • json_mode: If true, output structured JSON; otherwise styled text.