mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 08:05:29 +00:00
fix error handler
This commit is contained in:
@@ -16,7 +16,7 @@ export function ErrorHandler(error: Error, req: Request, res: Response, next: Ne
|
||||
errors = error.errors;
|
||||
} else {
|
||||
console.error(error);
|
||||
if (req.server.options.production) {
|
||||
if (req.server?.options?.production) {
|
||||
message = "Internal Server Error";
|
||||
}
|
||||
code = httpcode = 500;
|
||||
|
||||
Reference in New Issue
Block a user