Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Kao committed Jan 1, 2024
1 parent f7f432e commit 00307e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ app.prepare().then(async () => {
server.use(
(err: any, req: Request, res: Response, _next: NextFunction) => {
logger.error(`[${req.requestId}] Error in request: ${err.message}`, { err });
res.status(err.status or 500).json({
res.status(err.status || 500).json({
message: err.message,
errors: err.errors,
});
Expand Down

0 comments on commit 00307e9

Please sign in to comment.