Skip to main content

error

Macro error 

Source
macro_rules! error {
    ($($arg:tt)*) => { ... };
}
Expand description

Prints a log message to stderr with a new line, with a specified prefix.

§Examples

use hand::*;

error!("An error occurred"); // ❌ An error occurred
error!("Invalid input"); // ❌ Invalid input