From c461a1d0149317e7086e2fb6b128618fcec11262 Mon Sep 17 00:00:00 2001 From: boastful-squirrel Date: Thu, 2 May 2019 21:44:06 +0200 Subject: Display path instead of uri in 404 error --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 3bac14d..5c0edb7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -280,7 +280,7 @@ fn configure_app(app: App) -> App { } fn error_404(req: &HttpRequest) -> Result { - let err_404 = ContextualError::RouteNotFoundError(req.uri().to_string()); + let err_404 = ContextualError::RouteNotFoundError(req.path().to_string()); let default_color_scheme = req.state().default_color_scheme; let return_address = match &req.state().random_route { Some(random_route) => format!("/{}", random_route), -- cgit v1.2.3