aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-15 01:33:23 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-15 01:33:23 +0800
commit106a63cbfb338c2ea8e18fb7a42585982ca16226 (patch)
treeebcc3b081fc6f3c06d84ff27d1ff8a97d8ae0a2a
parentSeparate paths into segments (diff)
downloadforge-106a63cbfb338c2ea8e18fb7a42585982ca16226.tar.gz
forge-106a63cbfb338c2ea8e18fb7a42585982ca16226.tar.zst
forge-106a63cbfb338c2ea8e18fb7a42585982ca16226.zip
Handle all errors from http::serve
-rw-r--r--main.ha4
1 files changed, 3 insertions, 1 deletions
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);