From 0b89ae56281b124acc48c8bbcf5c5b82430289e9 Mon Sep 17 00:00:00 2001 From: jokj624 Date: Tue, 31 Aug 2021 15:35:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20view=20error=20=ED=95=B4=EA=B2=B0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 82667e6..ee465bc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,7 @@ app.use(function (err, req, res, next) { // render the error page res.status(err.status || 500); - res.render("error"); + res.json({ error: err }); }); app