about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTakuya Yoshida <hawaiianphoto@geekhost.net>2017-06-26 08:46:15 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-26 01:46:15 +0200
commite5563843a2c063ab0295f778428183361e0aa326 (patch)
treef3e7cfae6bf420066f1c664884d94e70594f21c6
parentc972e1ee1fdc7ebc8bd4ad764cdf189ca4874764 (diff)
Re-fix errorMiddleware (#3922)
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js
index d69f8fa19..e641c6548 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -246,7 +246,7 @@ const startWorker = (workerId) => {
     accountFromRequest(req, next);
   };
 
-  const errorMiddleware = (err, req, res, next) => {  // eslint-disable-line no-unused-vars
+  const errorMiddleware = (err, req, res, {}) => {
     log.error(req.requestId, err.toString());
     res.writeHead(err.statusCode || 500, { 'Content-Type': 'application/json' });
     res.end(JSON.stringify({ error: err.statusCode ? err.toString() : 'An unexpected error occurred' }));