diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -152,7 +152,7 @@ app.use(function (err, req, res, next) { | |||
152 | error = err.stack || err.message || err | 152 | error = err.stack || err.message || err |
153 | } | 153 | } |
154 | 154 | ||
155 | logger.error('Error in controller.', { error }) | 155 | logger.error('Error in controller.', { err: error }) |
156 | return res.status(err.status || 500).end() | 156 | return res.status(err.status || 500).end() |
157 | }) | 157 | }) |
158 | 158 | ||