diff options
author | khai96_ <hvksmr1996@gmail.com> | 2019-04-19 19:31:32 +0000 |
---|---|---|
committer | khai96_ <hvksmr1996@gmail.com> | 2019-04-19 19:31:32 +0000 |
commit | 4928988b04dd1c63aa3163dcd98e6483cae0e323 (patch) | |
tree | 88505d7d861f0852d3ee7ae69a356c67700caf2b /src | |
parent | Merge branches 'pullrequest.hashed-password.alt0' and 'pullrequest.hashed-pas... (diff) | |
download | miniserve-4928988b04dd1c63aa3163dcd98e6483cae0e323.tar.gz miniserve-4928988b04dd1c63aa3163dcd98e6483cae0e323.zip |
Correct error message
Diffstat (limited to 'src')
-rw-r--r-- | src/args.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs index 25d70ad..c749ac4 100644 --- a/src/args.rs +++ b/src/args.rs @@ -95,7 +95,7 @@ fn parse_auth(src: &str) -> Result<auth::RequiredAuth, String> { match second_part { "sha256" => auth::RequiredAuthPassword::Sha256(hash.to_owned()), "sha512" => auth::RequiredAuthPassword::Sha512(hash.to_owned()), - _ => return Err("Invalid hash method, valid methods is sha256".to_owned()) + _ => return Err("Invalid hash method, only accept either sha256 or sha512".to_owned()) } } else { // To make it Windows-compatible, the password needs to be shorter than 255 characters. |