mrutkows commented on a change in pull request #113: Fix Node Express 'use()'
method by removing invalid 'err' parameter
URL:
https://github.com/apache/incubator-openwhisk-runtime-nodejs/pull/113#discussion_r260447229
##########
File path: core/nodejsActionBase/app.js
##########
@@ -38,7 +38,7 @@ app.use(bodyParser.json({ limit: "48mb" }));
app.post('/init', wrapEndpoint(service.initCode));
app.post('/run', wrapEndpoint(service.runCode));
-app.use(function(err, req, res, next) {
+app.use(function(req, res, next) {
console.error(err.stack);
Review comment:
even in deprecated 3.x: it was not in the framework docs:
https://expressjs.com/en/3x/api.html#app.use
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services