[go: up one dir, main page]

color-eyre 0.5.4-rc.2

An error report handler for panics and eyre::Reports for colorful, consistent, and well formatted error reports for all kinds of errors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use color_eyre::eyre;
use eyre::eyre;

#[test]
fn enabled() {
    color_eyre::config::HookBuilder::default()
        .display_env_section(true)
        .install()
        .unwrap();

    let report = eyre!("error occured");

    let report = format!("{:?}", report);
    assert!(report.contains("RUST_BACKTRACE"));
}