From 218bee41a4311dd44e024ab7696161c567ad201f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Mar 2025 21:09:29 +0800 Subject: [PATCH] Catch all error types while listening --- main.ha | 2 +- diff --git a/main.ha b/main.ha index 545e9bd39258bfad973fcd6c8003f98ae21761e6..b52f1112771dd7d470220cecf68f2260ec0acc08 100644 --- a/main.ha +++ b/main.ha @@ -39,7 +39,7 @@ const server = match (http::listen(ip_addr, port, net::tcp::reuseport, net::tcp::reuseaddr)) { case let this: *http::server => yield this; - case net::error => abort("failure while listening"); + case => abort("failure while listening"); }; defer http::server_finish(server); -- 2.48.1