use errata::{FatalError, WithContext}; fn foo() -> Result { Err(2) } fn main() -> FatalError<(), String> { let bar = foo().context("foo failed")?; println!("{bar}"); ().into() }