Skip to content

Commit

Permalink
style: formatação com Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyleier committed Feb 21, 2025
1 parent 4a4d1eb commit e71caf9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infra/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ function onNoMatchHandler(request, response) {
}

function onErrorHandler(error, request, response) {
const publicErrorObject = new InternalServerError({ statusCode: error.statusCode, cause: error });
const publicErrorObject = new InternalServerError({
statusCode: error.statusCode,
cause: error,
});
console.error(publicErrorObject);
response.status(publicErrorObject.statusCode).json(publicErrorObject);
}
Expand Down

0 comments on commit e71caf9

Please sign in to comment.