[go: up one dir, main page]

eyre 0.6.10

Flexible concrete Error Reporting type built on std::error::Error with customizable Reports
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod common;

use crate::common::maybe_install_handler;

#[test]
fn test_context() {
    use eyre::{eyre, Report};

    maybe_install_handler().unwrap();

    let error: Report = eyre!("oh no!");
    let _ = error.context();
}