Skip to content
Myr

removed use of `app.error()` in examples

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 456a985 · Browse files · 3 files+3 added−4 removed
This commit

State

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

Diff stats

3 files+3 added−4 removed

  • other:+3 added−4 removed

3 files+3 added−4 removed

modified:examples/downloads/app.js+1 added-1 removed
modified:examples/mvc/mvc.js+1 added-2 removed
modified:examples/route-middleware/app.js+1 added-1 removed
38 unmodified lines
39 next();40 } else {41 // You may want to implement specific exceptions42 // such as UnauthorizedError or similar so that you43 // can handle these in app.error() specifically43 // can handle these can be special-cased in an error handler44 // (view ./examples/pages for this)45 next(new Error('Unauthorized'));46 }47}
39 unmodified lines