From f53a09b8d79c85b86b161c1ec7ca6f7cff5e169f Mon Sep 17 00:00:00 2001 From: boastful-squirrel Date: Wed, 1 May 2019 13:17:13 +0200 Subject: Display HTTP authentication errors --- src/errors.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs index 8264de0..a22127e 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -65,6 +65,10 @@ pub enum ContextualError { )] HTTPAuthenticationError(Box), + /// This error might occur when the HTTP credentials are not correct + #[fail(display = "Invalid credentials for HTTP authentication")] + InvalidHTTPCredentials, + /// This error might occur when an HTTP request is invalid #[fail(display = "Invalid HTTP request\ncaused by: {}", _0)] InvalidHTTPRequestError(String), -- cgit v1.2.3