mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #115 from overleaf/em-request-logger-hotfix
Fix error handler returning two responses
This commit is contained in:
commit
cd8d4445c0
1 changed files with 1 additions and 4 deletions
|
@ -17,10 +17,7 @@ class RequestLogger {
|
|||
|
||||
static errorHandler(err, req, res, next) {
|
||||
req.requestLogger.addFields({ error: err })
|
||||
res
|
||||
.send(err.message)
|
||||
.status(500)
|
||||
.end()
|
||||
res.status(500).send(err.message)
|
||||
}
|
||||
|
||||
static middleware(req, res, next) {
|
||||
|
|
Loading…
Reference in a new issue