From 218bee41a4311dd44e024ab7696161c567ad201f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Mar 2025 21:09:29 +0800 Subject: Catch all error types while listening --- main.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ha b/main.ha index 545e9bd..b52f111 100644 --- a/main.ha +++ b/main.ha @@ -39,7 +39,7 @@ export fn main() void = { 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); -- cgit v1.2.3