diff --git a/xtext/editorserver/src/middleware/ErrorHandlingMiddleware.js b/xtext/editorserver/src/middleware/ErrorHandlingMiddleware.js index 175f5d1..065f44d 100644 --- a/xtext/editorserver/src/middleware/ErrorHandlingMiddleware.js +++ b/xtext/editorserver/src/middleware/ErrorHandlingMiddleware.js @@ -1,5 +1,5 @@ -const errorHandlingMiddleware = (err, req, res, next) => { +const errorHandlingMiddleware = (err, req, res) => { if (err.status != null) { res.status(err.statusCode).json({ msg: err.message,