From bf4ea51424038eeedae44e76e741eed7f0113e98 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 5 Jan 2026 15:32:51 -0800 Subject: [PATCH] make uncaughtError public --- src/http/Server.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http/Server.zig b/src/http/Server.zig index d26e3d4..9644391 100644 --- a/src/http/Server.zig +++ b/src/http/Server.zig @@ -15,7 +15,8 @@ const Context = struct { options: handler.HandleWeatherOptions, rate_limiter: *RateLimiter, - fn uncaughtError(req: *httpz.Request, res: *httpz.Response, err: anyerror) void { + pub fn uncaughtError(self: *Context, req: *httpz.Request, res: *httpz.Response, err: anyerror) void { + _ = self; res.status = 500; res.body = "Internal Server Error"; log.warn("unhandled exception for request: {s}", .{req.url.raw});