[][src]Macro fatal::unwrap_format

macro_rules! unwrap_format {
    ($result:expr, $msg:tt) => { ... };
    ($result:expr, $fmt:tt, $($param:tt)*) => { ... };
}

Unwraps the result or formats an error message and exits.

This is like unwrap but enables formatting. The error message is in the named parameter error (i.e. {error} will show it).

The first argument should be a Result such that its error implements either Debug or Display. The rest of the arguments are as in format!.

The {error} named parameter must be used!