From 4ddade5bb351b454ebc7c9d6ad69ea40549cf9b1 Mon Sep 17 00:00:00 2001 From: boastful-squirrel Date: Mon, 22 Apr 2019 12:08:40 +0200 Subject: Improved errors --- src/errors.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs index 2bf4130..bd6dc66 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -48,6 +48,13 @@ pub enum ContextualErrorKind { _0, _1 )] ArchiveCreationError(String, Box), + + /// This error might occur when the HTTP authentication fails + #[fail( + display = "An error occured during HTTP authentication\ncaused by: {}", + _0 + )] + HTTPAuthenticationError(Box), } pub fn log_error_chain(description: String) { -- cgit v1.2.3