Crates.io | ckb-sentry-anyhow |
lib.rs | ckb-sentry-anyhow |
version | 0.21.0 |
source | src |
created_at | 2020-12-16 05:23:45.640751 |
updated_at | 2020-12-16 05:23:45.640751 |
description | Sentry integration for anyhow. |
homepage | |
repository | https://github.com/nervosnetwork/sentry-rust |
max_upload_size | |
id | 323488 |
size | 3,455 |
Adds support for capturing Sentry errors from anyhow::Error
.
use sentry_anyhow::capture_anyhow;
fn function_that_might_fail() -> anyhow::Result<()> {
Err(anyhow::anyhow!("some kind of error"))
}
if let Err(err) = function_that_might_fail() {
capture_anyhow(&err);
}
License: Apache-2.0