pub fn print_error_with_json(error: &Error, json_format: bool)
Prints an error message, either as JSON or user-friendly format.