From 211250a71d9b2df27f85beb35b89d23346c6fa5e Mon Sep 17 00:00:00 2001 From: boastful-squirrel Date: Sat, 27 Apr 2019 12:25:11 +0200 Subject: Improved some errors --- src/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs index d34b447..bf45b73 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -34,7 +34,7 @@ pub enum ContextualErrorKind { /// This error might occure if the hash method is neither sha256 nor sha512 #[fail( - display = "{} is not a valid hashing method. Expected sha256 or sha512", + display = "Invalid hashing method {}. Expected sha256 or sha512", _0 )] InvalidHashMethod(String), -- cgit v1.2.3