aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index dc7a71d60..529194a5e 100644
--- a/server.ts
+++ b/server.ts
@@ -158,7 +158,7 @@ app.use(function (req, res, next) {
158}) 158})
159 159
160app.use(function (err, req, res, next) { 160app.use(function (err, req, res, next) {
161 logger.error(err, err) 161 logger.error('Error in controller.', { error: err.stack || err.message || err })
162 res.sendStatus(err.status || 500) 162 res.sendStatus(err.status || 500)
163}) 163})
164 164