Skip to content
Myr

removed old `app.error()` docs

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 7d53bb4 · Browse files · 1 file+0 added−10 removed
This commit

State

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

Diff stats

1 file+0 added−10 removed

  • other:+0 added−10 removed

1 file+0 added−10 removed

modified:docs/guide.md-10 removed
1158 unmodified lines
1159When mounted, _res.redirect()_ will respect the mount-point. For example if a blog app is mounted at _/blog_, the following will redirect to _/blog/posts_:11601161 res.redirect('/posts');11621163### app.error(function)11641165Adds an error handler _function_ which will receive the exception as the first parameter as shown below.1166Note that we may set several error handlers by making several calls to this method, however the handler1167should call _next(err)_ if it does not wish to deal with the exception:11681169 app.error(function(err, req, res, next){1170 res.send(err.message, 500);1171 });11721163### app.helpers(obj)11641165Registers static view helpers.1166
200 unmodified lines