[][src]Crate simple_eyre

This library provides a custom eyre::EyreHandler type for usage with eyre that provides a minimal error report with no additional context. Essentially the minimal implementation of an error reporter.

Setup

Add the following to your toml file:

[dependencies]
simple-eyre = "0.3"

Then install the hook handler before constructing any eyre::Report types.

Example

This example panics
use simple_eyre::eyre::{eyre, WrapErr, Report};

fn main() -> Result<(), Report> {
    simple_eyre::install()?;

    let e: Report = eyre!("oh no this program is just bad!");

    Err(e).wrap_err("usage example successfully experienced a failure")
}

Re-exports

pub use eyre;

Structs

Handler

A custom context type for minimal error reporting via eyre

Functions

install

Install the simple-eyre hook as the global error report hook.