mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-16 21:17:44 +00:00
share links
This commit is contained in:
@@ -11,9 +11,9 @@ export const errorHandlerMiddleware: ErrorRequestHandler = (
|
||||
next: NextFunction
|
||||
) => {
|
||||
const statusCode = error.statusCode || HttpCode.INTERNAL_SERVER_ERROR;
|
||||
if (process.env.ENVIRONMENT !== "prod") {
|
||||
logger.error(error);
|
||||
}
|
||||
// if (process.env.ENVIRONMENT !== "prod") {
|
||||
// logger.error(error);
|
||||
// }
|
||||
res?.status(statusCode).send({
|
||||
data: null,
|
||||
success: false,
|
||||
|
||||
Reference in New Issue
Block a user