From 4928988b04dd1c63aa3163dcd98e6483cae0e323 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Sat, 20 Apr 2019 02:31:32 +0700 Subject: Correct error message --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { 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. -- cgit v1.2.3