diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs index 83a1ffa..b78999f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -2,6 +2,11 @@ use tokio::sync::TryAcquireError; #[derive(Debug, thiserror::Error)] pub enum ServiceError { + #[error("no response generated; the proxy is misconfigured")] + NoResponse, + #[error("request taken; the proxy is misconfigured")] + RequestTaken, + #[error("limit reached. try again")] Limit(#[from] TryAcquireError), #[error("hyper error")] @@ -18,8 +23,14 @@ pub enum ServiceError { BadRange, #[error("bad utf8")] BadUtf8(#[from] std::str::Utf8Error), + #[error("bad utf8")] + BadUtf82(#[from] std::string::FromUtf8Error), #[error("bad path")] BadPath, - #[error("ohh. i didn't expect that this error can be generated.")] + #[error("bad auth")] + BadAuth, + #[error("bad base64: {0}")] + BadBase64(#[from] base64::DecodeError), + #[error("impossible error")] Other, } |