[][src]Crate sentry_anyhow

Adds support for capturing Sentry errors from anyhow::Error.

Example

use sentry_anyhow::capture_anyhow;
let result = match function_that_might_fail() {
    Ok(result) => result,
    Err(err) => {
        capture_anyhow(&err);
        return Err(err);
    }
};

Traits

AnyhowHubExt

Hub extension methods for working with anyhow.

Functions

capture_anyhow

Captures an anyhow::Error.