aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorboastful-squirrel <boastful.squirrel@gmail.com>2019-05-06 16:54:14 +0000
committerboastful-squirrel <boastful.squirrel@gmail.com>2019-05-06 16:54:14 +0000
commit5b43a629a8592c1a3f49a3e42d62713a96dee0c8 (patch)
treeb33cb450785b2589edad83771f928569a256cf3e /src
parentUndo changes on src/archive.rs (diff)
downloadminiserve-5b43a629a8592c1a3f49a3e42d62713a96dee0c8.tar.gz
miniserve-5b43a629a8592c1a3f49a3e42d62713a96dee0c8.zip
Undo changes on InvalidHashMethod error
Diffstat (limited to 'src')
-rw-r--r--src/args.rs2
-rw-r--r--src/errors.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/args.rs b/src/args.rs
index bbf6ad1..ea0a4ac 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -205,7 +205,7 @@ mod tests {
),
case(
"username:blahblah:abcd",
- "Invalid hashing method blahblah. Expected sha256 or sha512"
+ "blahblah is not a valid hashing method. Expected sha256 or sha512"
),
case(
"username:sha256:invalid",
diff --git a/src/errors.rs b/src/errors.rs
index e5d2e41..68f6d7d 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -32,7 +32,7 @@ pub enum ContextualError {
InvalidAuthFormat,
/// This error might occure if the hash method is neither sha256 nor sha512
- #[fail(display = "Invalid hashing method {}. Expected sha256 or sha512", _0)]
+ #[fail(display = "{} is not a valid hashing method. Expected sha256 or sha512", _0)]
InvalidHashMethod(String),
/// This error might occur if the HTTP auth hash password is not a valid hex code