diff options
author | Vojtěch Pejša <vojtechpejsa7@gmail.com> | 2019-03-29 16:21:14 +0000 |
---|---|---|
committer | Vojtěch Pejša <vojtechpejsa7@gmail.com> | 2019-04-04 08:51:00 +0000 |
commit | 756a63200cdc48bf17d2997a2cbd537802a5193c (patch) | |
tree | 37c6029a550f4940cf1a9ba7a37018cd3b12975f | |
parent | Check if we have permissions to create files. (diff) | |
download | miniserve-756a63200cdc48bf17d2997a2cbd537802a5193c.tar.gz miniserve-756a63200cdc48bf17d2997a2cbd537802a5193c.zip |
Fix typos
-rw-r--r-- | src/errors.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/errors.rs b/src/errors.rs index 1eaa7c7..21d9e07 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -4,20 +4,20 @@ use std::fmt::{self, Debug, Display}; /// Kinds of errors which might happen during file upload #[derive(Debug, Fail)] pub enum FileUploadErrorKind { - /// This error will occur when file overriding is off and file with same name already exists + /// This error will occur when file overriding is off and a file with same name already exists #[fail(display = "File with this name already exists")] FileExist, - /// This error will occur when server will fail to preccess http header during file upload + /// This error will occur when the server fails to process the HTTP header during file upload #[fail(display = "Failed to parse incoming request")] ParseError, - /// This error will occur when we fail to precess multipart request + /// This error will occur when we fail to process the multipart request #[fail(display = "Failed to process multipart request")] MultipartError(actix_web::error::MultipartError), - /// This error may occur when trying to write incoming file to disk + /// This error may occur when trying to write the incoming file to disk #[fail(display = "Failed to create or write to file")] IOError(std::io::Error), /// This error will occur when we he have insuffictent permissions to create new file - #[fail(display = "Insuffitient permissions to create file")] + #[fail(display = "Insufficient permissions to create file")] InsufficientPermissions, } |