From 258f6625437fcef696e30c3f1869bb0f70b00dc5 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Sat, 31 Aug 2013 09:19:05 -0700 Subject: [PATCH] add ctx to error-handling example --- examples/errors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/errors.js b/examples/errors.js index 41f2442..c2d5227 100644 --- a/examples/errors.js +++ b/examples/errors.js @@ -20,7 +20,7 @@ app.use(function(next){ // want to delegate to the regular app // level error handling as well so that // centralized still functions correctly. - this.app.emit('error', err); + this.app.emit('error', err, this); } } });