tidy

Macro t

Source
macro_rules! t {
    ($e:expr, $p:expr) => { ... };
    ($e:expr) => { ... };
}
Expand description

A helper macro to unwrap a result except also print out details like:

  • The expression that failed
  • The error itself
  • (optionally) a path connected to the error (e.g. failure to open a file)