macro_rules! fail {
($($argument: tt),+ $(,)?) => { ... };
}Expand description
When enabled, will log an error and pause execution
Will only break once per program run
arguments are processed by Tracing’s error! macro (Tracing required)
When disabled, will log an error
Will log once per program run
Platforms other than x86, x86_64, and ARM64 Require Nightly Rust and the core_intrinsics feature
§Examples
unbug::fail!("failed to do something");
unbug::fail!("failed to do something: {:?}", some_var);