macro_rules! process_error {
($stream:expr, $($arg:tt)+) => { ... };
}Expand description
Prints the process invocation name, an error label, and a message to a stream.
The macro evaluates to a std::io::Result<()>, just like writeln does.
NOTE: The macro requires the crate [owo-colors].
ยงExamples
let mut stderr = meadows::io::stderr().lock();
process_error!(stderr, "Cannot start engine")?; // -> "${inv_name}: error: Cannot start engine\n"