2 releases
0.1.1 | Jul 14, 2024 |
---|---|
0.1.0 | Jul 9, 2024 |
#19 in #error-context
Used in thus-saith
7KB
79 lines
Exit on Error
This crate helps you exit on error with underlying anyhow
error handling.
Install
cargo add eoe
Examples
use anyhow::{anyhow, Context};
use eoe::ExitOnError;
Err::<(), _>(anyhow!("Mm-noom-ba-deh"))
.context("Doom-boom-ba-beh")
.context("Doo-boo-boom-ba-beh-beh")
.exit_on_error();
use anyhow::{anyhow, Context};
use eoe::QuitOnError;
Err::<(), _>(anyhow!("Mm-ba-ba-beh, mm-ba-ba-beh"))
.context("Dee-day-da, ee-day-da")
.quit_on_error();
lib.rs
:
This crate helps you exit on error with underlying anyhow
error handling.
Dependencies
~175–370KB