Skip to content
Myr

res.render() exceptions passed to next() when no callback is given

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 9a63333 · Browse files · 2 files+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−1 removed

  • other:+2 added−1 removed

2 files+2 added−1 removed

modified:lib/express/server.js+1 added
39 unmodified lines
40 res.headers = {};41 req.app = res.app = self;42 req.res = res;43 res.req = req;44 req.next = next;45 // Assign req.params.get46 if (req.url.indexOf('?') > 0) {47 // TODO: consider simple substr to increase performance48 var query = url.parse(req.url).query;
188 unmodified lines
modified:lib/express/view.js+1 added-1 removed
274 unmodified lines
275 function error(err) {276 if (fn) {277 fn(err);278 } else {279 throw err;279 self.req.next(err);280 }281 }282283 // Cache contents
29 unmodified lines