diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -158,7 +158,7 @@ app.use(function (req, res, next) { | |||
158 | }) | 158 | }) |
159 | 159 | ||
160 | app.use(function (err, req, res, next) { | 160 | app.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 | ||