From 80384e4ba1693637909381a3dc847bdd2262c65f Mon Sep 17 00:00:00 2001 From: Tuan Anh Date: Mon, 23 Dec 2024 11:07:37 +0700 Subject: [PATCH] Add anyhow error --- Cargo.toml | 1 + src/errors.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index be586f6e0..ff8fb55d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -153,6 +153,7 @@ rusty-sidekiq = { version = "0.11.0", default-features = false, optional = true bb8 = { version = "0.8.1", optional = true } scraper = { version = "0.21.0", optional = true } +anyhow = "1.0.95" [workspace.dependencies] diff --git a/src/errors.rs b/src/errors.rs index d5aef1c94..ed830896d 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -56,6 +56,9 @@ pub enum Error { #[error(transparent)] Tera(#[from] tera::Error), + #[error(transparent)] + Anyhow(#[from] anyhow::Error), + #[error(transparent)] JSON(serde_json::Error),