diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-12 23:31:55 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-12 23:31:55 +0000 |
commit | e516fd628216d5ddf3bd3a7b836b3d9b14e57ee3 (patch) | |
tree | c9c268ae9461ba377712500142cb4529ab4642c9 | |
parent | updated Cargo.lock (diff) | |
download | miniserve-e516fd628216d5ddf3bd3a7b836b3d9b14e57ee3.tar.gz miniserve-e516fd628216d5ddf3bd3a7b836b3d9b14e57ee3.zip |
Improved error message
Diffstat (limited to '')
-rw-r--r-- | src/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errors.rs b/src/errors.rs index 6781bc6..d78216f 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -11,9 +11,9 @@ pub enum CompressionErrorKind { CreateTemporaryFileError, #[fail(display = "Could not create file {}", path)] CreateFileError { path: String }, - #[fail(display = "Invalid path: directory name cannot end with \"..\"")] + #[fail(display = "Invalid path: directory name terminates in \"..\"")] InvalidDirectoryName, - #[fail(display = "Directory name contains invalid UTF-8 characters")] + #[fail(display = "Invalid path: directory name contains invalid UTF-8 characters")] InvalidUTF8DirectoryName, #[fail(display = "Failed to create the TAR archive: {}", message)] TarBuildingError { message: String }, |