17 lines
303 B
Rust
17 lines
303 B
Rust
|
|
#[macro_export]
|
||
|
|
macro_rules! fatal {
|
||
|
|
($msg:expr) => {
|
||
|
|
({
|
||
|
|
tracing::error!($msg);
|
||
|
|
std::process::exit(1);
|
||
|
|
})
|
||
|
|
};
|
||
|
|
|
||
|
|
($fmt:expr, $($arg:tt)*) => {
|
||
|
|
({
|
||
|
|
tracing::error!($fmt, $($arg)*);
|
||
|
|
std::process::exit(1);
|
||
|
|
})
|
||
|
|
};
|
||
|
|
}
|