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

Update ConnectError.from to keep the cause #722

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

timostamm
Copy link
Member

ConnectError.from() wraps any error as a ConnectError, unless it already is a ConnectError.

This updates the method to store the original reason in the cause property of the newly created ConnectError.

Closes #715.

ConnectError.from() wraps any error as a ConnectError, unless it already is a ConnectError.

This updates the method to store the original reason in the `cause` property of the newly created ConnectError.
@timostamm timostamm requested a review from srikrsna-buf July 18, 2023 13:48
@timostamm timostamm merged commit 5930ac1 into main Jul 18, 2023
@timostamm timostamm deleted the tstamm/keep-connect-error-cause branch July 18, 2023 15:30
@timostamm timostamm mentioned this pull request Jul 25, 2023
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.

[connect-web] Improved error handling for errors thrown by fetch
2 participants