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

Make message of ApiError instances enumerable #213

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

Pimm
Copy link
Collaborator

@Pimm Pimm commented Jul 13, 2021

This makes it more likely that the message survives serialisation. (message is not enumerable by default[source].)

Given that this client is designed for Node.js, consumers might convert errors to JSON. This way, the message ends up in the resulting JSON document.

This makes it more likely that the message survives serialisation. Given that this client is designed for Node.js, consumers might convert errors to JSON. This way, the message ends up in the resulting JSON document.
@Pimm Pimm merged commit e913654 into master Sep 21, 2021
@Pimm Pimm deleted the pimm/enumerable-error-message branch September 21, 2021 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants