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

Suppress teardown exceptions when setup exception already encountered #50

Merged
merged 6 commits into from
Nov 25, 2021

Conversation

dvgica
Copy link
Owner

@dvgica dvgica commented Nov 25, 2021

Previously, if build/setup threw an exception, and the subsequent teardown also threw an exception, the teardown exception would be surfaced and the setup exception would be swallowed. This is not great - normally you want to know the first thing that went wrong - i.e. why did setup fail.

This PR changes the behavior to surface the setup/build exception, and add any teardown exception as a suppressed exception to it.

@dvgica dvgica merged commit d284161 into main Nov 25, 2021
@dvgica dvgica deleted the fix-swallowed-startup-exception branch November 25, 2021 19:52
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.

1 participant