1 2 3 4 5 6 7 8 9 10
/// Log the error using the `log` crate and throw a panic with the same message #[clippy::format_args] #[macro_export] macro_rules! perror { ($($arg:tt)+) => ({ use log::error; error!($($arg)+); panic!($($arg)+); }); }