make uncaughtError public
This commit is contained in:
parent
a5afaeb848
commit
bf4ea51424
1 changed files with 2 additions and 1 deletions
|
|
@ -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});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue