Skip to content

Commit

Permalink
๐ŸŽ‰ add : ์—๋Ÿฌ ํ•ธ๋“ค๋Ÿฌ ๋ฏธ๋“ค์›จ์–ด ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonseol00 committed Jun 17, 2024
1 parent 5b227ed commit d43e645
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/middlewares/error-handling.middleware.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default function (err, req, res, next) {
console.error(err);

res.status(500).json({ errorMessage: '์˜ˆ๊ธฐ์น˜ ๋ชปํ•œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.' });
}

0 comments on commit d43e645

Please sign in to comment.