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});