From 106a63cbfb338c2ea8e18fb7a42585982ca16226 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Mar 2025 01:33:23 +0800 Subject: Handle all errors from http::serve --- main.ha | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.ha b/main.ha index 2c59c3d..3deb557 100644 --- a/main.ha +++ b/main.ha @@ -48,7 +48,9 @@ export fn main() void = { const serv_req = match (http::serve(server)) { case let this: *http::server_request => yield this; - case net::error => abort("failure while serving"); + case => + log::println("failure while serving"); + continue; }; defer http::serve_finish(serv_req); -- cgit v1.2.3