Преглед на файлове

storage-node: fix error

Shamil Gadelshin преди 4 години
родител
ревизия
eb0ee9647b
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      storage-node/packages/colossus/lib/app.js

+ 3 - 1
storage-node/packages/colossus/lib/app.js

@@ -64,7 +64,9 @@ function createApp(projectRoot, storage, runtime) {
 
   // If no other handler gets triggered (errors), respond with the
   // error serialized to JSON.
-  app.use(function(err, req, res) {
+  // Disable lint because we need such function signature.
+  // eslint-disable-next-line no-unused-vars
+  app.use(function(err, req, res, next) {
     res.status(err.status).json(err)
   })