Skip to content

Commit

Permalink
feat: 에러 발생시 서버 터미널에 출려
Browse files Browse the repository at this point in the history
  • Loading branch information
ekek54 committed Dec 12, 2022
1 parent ee2d399 commit 07d14c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/Middlewares/Error.Middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import HttpException from "../Common/Exceptions/Http.Exception";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const errorMiddleware = (err: HttpException, req: Request, res: Response, next: NextFunction) => {
// render the error page
console.log(err);
const { status, message } = err;
res.status(err.status).send({
status,
Expand Down

0 comments on commit 07d14c1

Please sign in to comment.