macro_rules! emit_error { ( $err: expr ) => { ... }; }
Log $err at level error before returning it.
$err