Fixes typo in error handling section of API readme (#786)

This commit is contained in:
Jen Trudell 2016-07-26 11:50:20 -05:00 committed by Julian Gruber
parent 0f3ec409d9
commit 53ed176c13

View file

@ -172,7 +172,7 @@ app.context.db = db();
## Error Handling
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`.
The default error handler also won't output errors when `err.status` is `404` or `err.expose` is `true`.
To perform custom error-handling logic such as centralized logging you can add an "error" event listener:
```js