Skip to content

Commit

Permalink
Put the arguments the right way around in emitter.
Browse files Browse the repository at this point in the history
  • Loading branch information
philjackson authored and indexzero committed Dec 27, 2013
1 parent 25bb3bf commit 7c8ecc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ exports.stack = function stack (middlewares, proxy) {
handle = function (req, res) {
var next = function (err) {
if (err) {
if (! proxy.emit('middlewareError', err, res, req)) {
if (! proxy.emit('middlewareError', err, req, res)) {
console.error('Error in middleware(s): %s', err.stack);
}

Expand Down

0 comments on commit 7c8ecc8

Please sign in to comment.