Skip to content

Commit

Permalink
Add logging to unknown exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoerlitz committed Oct 18, 2023
1 parent a38bd45 commit 2378bee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middlewares/ExceptionInterceptorMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export async function exceptionInterceptorMiddleware(error: any, request: Reques
return;
}

console.error(error);
response.status(HttpStatusCode.InternalServerError).send({
path: request.url,
method: request.method,
Expand Down

0 comments on commit 2378bee

Please sign in to comment.