Macro uucore::return_if_err[][src]

macro_rules! return_if_err {
    ($exit_code : expr, $exp : expr) => { ... };
}
Expand description

Unwraps the Result. Instead of panicking, it shows the error and then returns from the function with the provided exit code. Assumes the current function returns an i32 value.