macro_rules! whatever {
($fmt:literal$(, $($arg:expr),* $(,)?)?) => { ... };
($source:expr, $fmt:literal$(, $($arg:expr),* $(,)?)*) => { ... };
}Expand description
Propagates an error, adding formatted context.
whatever!("msg")returnsErr(format_err!(...)).whatever!(source, "msg {x}", x)unwrapssourceor returns with context.