error_message

Function error_message 

Source
pub fn error_message(content: impl AsRef<str>) -> FormattedMessage
Expand description

Format an error message with emoji and red styling

Content can include inner styling like <bold>:

use color_print::cformat;
use worktrunk::styling::error_message;

let name = "feature";
println!("{}", error_message(cformat!("Branch <bold>{name}</> not found")));