mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-23 13:48:51 +02:00
share links
This commit is contained in:
parent
72dc02ff2e
commit
845d65ad33
31 changed files with 1281 additions and 212 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue