[go: up one dir, main page]

eyre 0.6.12

Flexible concrete Error Reporting type built on std::error::Error with customizable Reports
Documentation
1
2
3
4
5
6
7
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")
}