macro_rules! err { () => { ... }; ($arg:expr) => { ... }; ($($arg:tt)*) => { ... }; }
Expand description
Error message.
Write an error while in a prompt session.
Can take either a fmt string like format!
, a type that implements std::fmt::Display
, or nothing.
§Examples
use may_clack::{intro, err, outro};
intro!("intro");
// do stuff
err!("err");
// do stuff
outro!();
use may_clack::err;
// empty
err!();
// fmt string
err!("fmt {:?}", "string");
// impl Display
err!("text");
err!(4);