aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 9f0a418..d34b447 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -68,6 +68,10 @@ pub enum ContextualErrorKind {
_0
)]
HTTPAuthenticationError(Box<ContextualError>),
+
+ /// This error might occur when an HTTP request is invalid
+ #[fail(display = "Invalid HTTP request\ncaused by: {}", _0)]
+ InvalidHTTPRequestError(String),
}
pub fn log_error_chain(description: String) {