oden/third-party/vendor/eyre/examples/eyre-usage.rs
2024-03-08 11:03:01 -08:00

7 lines
207 B
Rust

use eyre::{eyre, Report, WrapErr};
fn main() -> Result<(), Report> {
let e: Report = eyre!("oh no this program is just bad!");
Err(e).wrap_err("usage example successfully experienced a failure")
}