diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/errors.rs | 2 | ||||
-rw-r--r-- | src/file_upload.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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), diff --git a/src/file_upload.rs b/src/file_upload.rs index 88a4649..f8c5019 100644 --- a/src/file_upload.rs +++ b/src/file_upload.rs @@ -30,7 +30,7 @@ fn save_file( Ok(file) => file, Err(e) => { return Box::new(future::err(ContextualErrorKind::IOError( - format!("Failed to create file {}", file_path.display()), + format!("Failed to create {}", file_path.display()), e, ))); } |