diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-15 01:33:23 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-15 01:33:23 +0800 |
commit | 106a63cbfb338c2ea8e18fb7a42585982ca16226 (patch) | |
tree | ebcc3b081fc6f3c06d84ff27d1ff8a97d8ae0a2a | |
parent | Separate paths into segments (diff) | |
download | forge-106a63cbfb338c2ea8e18fb7a42585982ca16226.tar.gz forge-106a63cbfb338c2ea8e18fb7a42585982ca16226.tar.zst forge-106a63cbfb338c2ea8e18fb7a42585982ca16226.zip |
Handle all errors from http::serve
-rw-r--r-- | main.ha | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |