flux_common::bug

Function catch_bugs

Source
pub fn catch_bugs<R>(
    msg: &str,
    f: impl FnOnce() -> R + UnwindSafe,
) -> Result<R, ErrorGuaranteed>