log_then_return

Macro log_then_return 

Source
macro_rules! log_then_return {
    ($msg:literal $(,)?) => { ... };
    ($err:expr $(,)?) => { ... };
    ($err:stmt $(,)?) => { ... };
    ($fmtstr:expr, $($arg:tt)*) => { ... };
}
Expand description

Logs an error then returns with it, more or less equivalent to the bail! macro in anyhow but for HyperlightError instead of anyhow::Error