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

provide wrapErrorSerializer to support custom error serializers #18

Merged
merged 1 commit into from
Apr 5, 2019

Conversation

jstewmon
Copy link
Contributor

@jstewmon jstewmon commented Apr 4, 2019

No description provided.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also update the README?

@jstewmon jstewmon force-pushed the wrap-error-serializer branch from ffbef7a to f656442 Compare April 4, 2019 15:44
@jstewmon
Copy link
Contributor Author

jstewmon commented Apr 4, 2019

@mcollina I updated the docs and made another pass over the standard error serializer to include raw, so that custom serializers will have access to the original Error instance.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jsumners
Copy link
Member

jsumners commented Apr 5, 2019

I do not see the docs changes. Did you forget to push?

- define error object proto to include `raw`, so custom serializers
  have access to the original Error
- updated docs on wrapper utility functions to indicate value must be
  returned
@jstewmon jstewmon force-pushed the wrap-error-serializer branch from f656442 to 44caafb Compare April 5, 2019 12:28
@jstewmon
Copy link
Contributor Author

jstewmon commented Apr 5, 2019

🤦‍♂️ I must have flubbed my git add command yesterday. Changes to support raw and docs are actually pushed now.

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcollina mcollina merged commit c8a8de9 into pinojs:master Apr 5, 2019
@jstewmon jstewmon deleted the wrap-error-serializer branch June 7, 2019 02:53
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.

3 participants