make uncaughtError public
All checks were successful
Generic zig build / build (push) Successful in 2m22s
Generic zig build / deploy (push) Successful in 2m7s

This commit is contained in:
Emil Lerch 2026-01-05 15:32:51 -08:00
parent a5afaeb848
commit bf4ea51424
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

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