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 passthrough of error.cause for PublicNonRecoverableError & InternalError #118

Merged
merged 3 commits into from
Apr 12, 2024

Conversation

drdaemos
Copy link
Collaborator

This PR adds an optional passing of previous error as cause field (see https://nodejs.org/api/errors.html#errorcause) to allow to chain errors and keep original traces in case of re-wrapping.

@drdaemos drdaemos merged commit 1bdfe3b into main Apr 12, 2024
4 checks passed
@drdaemos drdaemos deleted the feat/cause-in-errors branch April 12, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants