Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debug mode to reformat() #211

Merged
merged 1 commit into from Nov 28, 2018

Conversation

@cjihrig
Copy link
Contributor

cjihrig commented Nov 28, 2018

This allows Internal Server Errors to be more easily inspected during development.

README.md Outdated
@@ -73,7 +73,7 @@ error response object which includes the following properties:
- inherited `Error` properties.

The `Boom` object also supports the following method:
- `reformat()` - rebuilds `error.output` using the other object properties.
- `reformat(debug = false)` - rebuilds `error.output` using the other object properties. When `debug` is `false`, `reformat()` redacts the error message of Internal Server Errors.

This comment has been minimized.

Copy link
@hueniverse

hueniverse Nov 28, 2018

Member

I prefer the hapi core style of where: \n - arg...

This allows Internal Server Errors to be more easily inspected
during development.
@hueniverse hueniverse self-assigned this Nov 28, 2018
@hueniverse hueniverse added the feature label Nov 28, 2018
@hueniverse hueniverse added this to the 7.2.3 milestone Nov 28, 2018
@hueniverse hueniverse merged commit a236a89 into hapijs:master Nov 28, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@cjihrig cjihrig deleted the cjihrig:debug branch Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.