Skip to main content

error

Function error 

Source
pub fn error(msg: &str) -> String
Expand description

Format an error message with red X.

Returns colored output if stdout is a TTY, plain text otherwise.