pub fn render_error(err: &Error, json_mode: bool)
Render an error to stderr in either text or JSON format.
Args:
err
json_mode
true