Skip to content
Myr

Merge branch 'error-handling-routes'

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 · parents 02b9d0b, 0dd80e7 · Browse files · 2 files+45 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+45 added−1 removed

  • tests:+43 added−0 removed
  • other:+2 added−1 removed

2 files+45 added−1 removed

modified:lib/router/index.js+2 added-1 removed
157 unmodified lines
158 } else if (err && fn) {159 if (fn.length < 4) return callbacks(err);160 fn(err, req, res, callbacks);161 } else if (fn) {162 fn(req, res, callbacks);162 if (fn.length < 4) return fn(req, res, callbacks);163 callbacks();164 } else {165 nextRoute(err);166 }167 } catch (err) {
91 unmodified lines
added:test/app.routes.error.js+43 added