Skip to content

Commit

Permalink
Merge pull request #690 from PlasmaPower/patch-1
Browse files Browse the repository at this point in the history
Docs: v2 error handling is environment independent
  • Loading branch information
jonathanong committed Mar 22, 2016
2 parents 2b094eb + efcdd3b commit bd3d9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ app.context.db = db();

## Error Handling

By default outputs all errors to stderr unless __NODE_ENV__ is "test" or `app.silent` is `true`.
By default outputs all errors to stderr unless `app.silent` is `true`.
The default error handler also won't outputs 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:

Expand Down

0 comments on commit bd3d9e5

Please sign in to comment.