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

Added toJSON function to error object #277

Merged
merged 1 commit into from Dec 16, 2014
Merged

Conversation

arb
Copy link
Contributor

@arb arb commented Dec 16, 2014

Closes #276

Because we attach error directly, which can't be stringified, add a custom toJSON method to step around the problem.

@arb arb added this to the 5.0.1 milestone Dec 16, 2014
@arb arb assigned geek Dec 16, 2014
@arb arb added the bug Bug or defect label Dec 16, 2014
geek added a commit that referenced this pull request Dec 16, 2014
Added toJSON function to error object
@geek geek merged commit 5ec6c68 into hapijs:master Dec 16, 2014
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

toJSON on Error Event
2 participants