Skip to content

Commit

Permalink
Add anyhow error
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnmt committed Dec 23, 2024
1 parent 481e1d0 commit 80384e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
3 changes: 3 additions & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand Down

0 comments on commit 80384e4

Please sign in to comment.