diff --git a/Cargo.lock b/Cargo.lock
index c064533..040405c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -20,6 +20,12 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "anyhow"
+version = "1.0.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61604a8f862e1d5c3229fdd78f8b02c68dcf73a4c4b05fd636d12240aaa242c1"
+
[[package]]
name = "atty"
version = "0.2.14"
@@ -47,11 +53,11 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
name = "blockfast"
version = "0.1.0"
dependencies = [
+ "anyhow",
"clap",
"lazy_static",
"linemux",
"regex",
- "thiserror",
"tokio",
]
@@ -399,26 +405,6 @@ dependencies = [
"unicode-width",
]
-[[package]]
-name = "thiserror"
-version = "1.0.30"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417"
-dependencies = [
- "thiserror-impl",
-]
-
-[[package]]
-name = "thiserror-impl"
-version = "1.0.30"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
[[package]]
name = "tokio"
version = "1.12.0"
diff --git a/Cargo.toml b/Cargo.toml
index 2e7d802..25f875d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,4 +12,4 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
lazy_static = "1.4.0"
regex = "1.5.4"
clap = "2.33.3"
-thiserror = "1.0.26"
+anyhow = "1.0.44"
diff --git a/src/clf.rs b/src/clf.rs
index 7fa0e02..972e27f 100644
--- a/src/clf.rs
+++ b/src/clf.rs
@@ -1,4 +1,4 @@
-use crate::utils::Error;
+use anyhow::Result;
use lazy_static::lazy_static;
use std::net::IpAddr;
@@ -8,15 +8,15 @@ lazy_static! {
static ref BAD_STATUSES: [u32; 2] = [401, 429];
}
-pub fn parse(line: &str) -> Result