Improve error messages

This commit is contained in:
tessereth 2018-07-05 18:16:28 +10:00
parent 66cc773a30
commit 10bc493e1d
No known key found for this signature in database
GPG Key ID: DF640BCE2E866153
1 changed files with 2 additions and 2 deletions

View File

@ -630,10 +630,10 @@ impl From<UrlParseError> for UrlGenerationError {
#[derive(Fail, Debug, PartialEq)] #[derive(Fail, Debug, PartialEq)]
pub enum StaticFileError { pub enum StaticFileError {
/// Path is not a directory /// Path is not a directory
#[fail(display = "Path is not a directory")] #[fail(display = "Path is not a directory. Unable to serve static files")]
IsNotDirectory, IsNotDirectory,
/// Cannot render directory /// Cannot render directory
#[fail(display = "Cannot render directory")] #[fail(display = "Unable to render directory without index file")]
IsDirectory, IsDirectory,
} }