diff --git a/src/server/h2service.rs b/src/server/h2service.rs index 9689b282..453495d0 100644 --- a/src/server/h2service.rs +++ b/src/server/h2service.rs @@ -55,7 +55,7 @@ impl H2Service { match self.router.find_method(&components, method, &mut uri_param) { None => { - let err = http_err!(NOT_FOUND, "Path not found.".to_string()); + let err = http_err!(NOT_FOUND, format!("Path '{}' not found.", path).to_string()); future::ok((formatter.format_error)(err)).boxed() } Some(api_method) => { diff --git a/src/server/rest.rs b/src/server/rest.rs index 1e6c3d6c..d05e51ab 100644 --- a/src/server/rest.rs +++ b/src/server/rest.rs @@ -493,7 +493,7 @@ pub async fn handle_request(api: Arc, req: Request) -> Result, req: Request) -> Result { - let err = http_err!(NOT_FOUND, "Path not found.".to_string()); + let err = http_err!(NOT_FOUND, format!("Path '{}' not found.", path).to_string()); return Ok((formatter.format_error)(err)); } Some(api_method) => { @@ -596,5 +596,5 @@ pub async fn handle_request(api: Arc, req: Request) -> Result