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

Creates an Error with a particular message, using format!() style arguments

Example: error_msg!(“index {} not found”, index)