Skip to main content

format_error_hint

Function format_error_hint 

Source
pub fn format_error_hint(message: &str, hints: &[&str], color: bool) -> String
Expand description

Format an error message with optional hint lines.

Produces:

error: something went wrong

hint: try doing X instead
hint: see https://example.com for details