[][src]Crate simple_eyre

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

Example

use eyre::{eyre, WrapErr};
use simple_eyre::Report;

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")
}

Structs

Context

A custom context type for minimal error reporting via eyre

Type Definitions

Report

A type alias for eyre::Report<simple_eyre::Context>

Result

A type alias for Result<T, simple_eyre::Report>