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

api: preserve cause when re-raising error #3023

Merged
merged 1 commit into from
Jul 29, 2022
Merged

Conversation

milas
Copy link
Contributor

@milas milas commented Jul 28, 2022

Use from e to ensure that the error context is propagated
correctly.

Fixes #2702.

@milas milas requested a review from a team July 28, 2022 22:18
@milas milas self-assigned this Jul 28, 2022
Use `from e` to ensure that the error context is propagated
correctly.

Fixes docker#2702.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
@milas milas merged commit 05e1434 into docker:main Jul 29, 2022
@milas milas deleted the error-cause branch July 29, 2022 15:08
@milas milas added this to the 6.0.0 milestone Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants