diff options
author | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-22 10:08:40 +0000 |
---|---|---|
committer | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-22 10:08:40 +0000 |
commit | 4ddade5bb351b454ebc7c9d6ad69ea40549cf9b1 (patch) | |
tree | 6dce46493f776f22e168877f6f950563942908df /src/errors.rs | |
parent | Fixed syntax error (diff) | |
download | miniserve-4ddade5bb351b454ebc7c9d6ad69ea40549cf9b1.tar.gz miniserve-4ddade5bb351b454ebc7c9d6ad69ea40549cf9b1.zip |
Improved errors
Diffstat (limited to '')
-rw-r--r-- | src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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<ContextualError>), + + /// This error might occur when the HTTP authentication fails + #[fail( + display = "An error occured during HTTP authentication\ncaused by: {}", + _0 + )] + HTTPAuthenticationError(Box<ContextualError>), } pub fn log_error_chain(description: String) { |