From 20a6291ac9d3d0380381a4df24ea4417c36d944a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Fri, 16 Sep 2022 17:22:46 +0100 Subject: [PATCH] main.rs: Add comment about better error handling --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index df73a34..b86c60b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,6 +60,10 @@ async fn main() -> std::io::Result<()> { HttpServer::new(move || { App::new() .wrap(middleware::NormalizePath::trim()) + // TODO(tlater): When actix-web 4.3 releases, this can be improved a + // lot because of this PR: + // + // https://github.com/actix/actix-web/pull/2784 .wrap( ErrorHandlers::new() .handler(StatusCode::NOT_FOUND, generic_error)