We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 53a165f commit a808671Copy full SHA for a808671
docs/api/index.md
@@ -193,8 +193,9 @@ app.context.db = db();
193
194
## Error Handling
195
196
- By default outputs all errors to stderr unless __NODE_ENV__ is "test". To perform custom error-handling logic such as centralized logging you
197
- can add an "error" event listener:
+ By default outputs all errors to stderr unless __NODE_ENV__ is "test" or `app.silent` is `true`.
+ The default error handler also won't outputs errors when `err.status` is `404` or `err.expose` is `true`.
198
+ To perform custom error-handling logic such as centralized logging you can add an "error" event listener:
199
200
```js
201
app.on('error', function(err){
0 commit comments