diff options
author | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-05-01 15:01:41 +0000 |
---|---|---|
committer | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-05-01 15:01:41 +0000 |
commit | e4bb38b17db665a8167feab9347494445385ebb3 (patch) | |
tree | c4608fd9ea443cf69113371c344bcf842b36b310 /src/errors.rs | |
parent | Display HTTP authentication errors (diff) | |
download | miniserve-e4bb38b17db665a8167feab9347494445385ebb3.tar.gz miniserve-e4bb38b17db665a8167feab9347494445385ebb3.zip |
Display 404 error
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index a22127e..e5d2e41 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -72,6 +72,10 @@ pub enum ContextualError { /// This error might occur when an HTTP request is invalid #[fail(display = "Invalid HTTP request\ncaused by: {}", _0)] InvalidHTTPRequestError(String), + + /// This error might occur when trying to access a page that does not exist + #[fail(display = "Route {} could not be found", _0)] + RouteNotFoundError(String), } pub fn log_error_chain(description: String) { |