fix error handler
This commit is contained in:
parent
3807648cdc
commit
482088b91b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user