mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-10-02 07:21:36 +00:00
8 lines
207 B
Rust
8 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")
|
|
}
|