[][src]Macro dynerr::check

macro_rules! check {
    ($x:expr) => { ... };
    ($x:expr, $log:expr) => { ... };
}

Shortcut for .unwrap_or_else(|e| logged_panic!(e)) for DynResult.

If no file supplied then defaults to "event.log".
creates the file if it doesnt exist.

Example

let i = check!(try_something());
let i = check!(try_something(), "test.log");