mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Fix error handler returning two responses
The error handler mistakenly sent two responses on error, the first being a 200.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user