macro_rules! panic_on_err {
    ($closure:block) => { ... };
}
Expand description

When working in a function that cannot return a result, wrap a block in this macro to panic with the formatted error if it errors.