aboutsummaryrefslogtreecommitdiff
path: root/main.ha
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-13 21:09:29 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-13 21:09:29 +0800
commit218bee41a4311dd44e024ab7696161c567ad201f (patch)
tree51181912552d3d17161ef7c126610c40d4f157b8 /main.ha
parentAccept --config not --address (diff)
downloadforge-hare.tar.gz
forge-hare.tar.zst
forge-hare.zip
Catch all error types while listeninghare
Diffstat (limited to 'main.ha')
-rw-r--r--main.ha2
1 files changed, 1 insertions, 1 deletions
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);