Macro demo_vk::trace

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

Add context to an anyhow error which includes a formatted error message, the file path, and the line number.

§Usage

Given a method which returns an anyhow result:

my_method() .with_context(!trace(“some error message {}”, some_variable))?;