Merge pull request #690 from PlasmaPower/patch-1
Docs: v2 error handling is environment independent
This commit is contained in:
commit
bd3d9e5100
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ app.context.db = db();
|
||||||
|
|
||||||
## Error Handling
|
## 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`.
|
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:
|
To perform custom error-handling logic such as centralized logging you can add an "error" event listener:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue