Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhermeF03 committed Jun 28, 2024
2 parents fa45ab5 + 6de82e5 commit 5b9d00d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ export default function errorMiddleware(error: Error, req: Request, res: Respons
const message = response.statusCode === 500 ? 'Internal server error' : error.message;
response.send({ error: message });
ErrorLogger.logError(error.message);
console.log('name', error.name);
console.error(error);
}

0 comments on commit 5b9d00d

Please sign in to comment.