Skip to content

Ensure that exception is not swallowed by finally block #1569

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

Merged

Conversation

adityapatwardhan
Copy link
Member

@adityapatwardhan adityapatwardhan commented Feb 16, 2024

PR Summary

Some cases the exception was not caught but swallowed by finally block.
Ensure we rethrow the exception after writing error.

PR Context

PR Checklist

@adityapatwardhan adityapatwardhan enabled auto-merge (squash) February 21, 2024 02:38
Copy link
Member

@anamnavi anamnavi left a comment

Choose a reason for hiding this comment

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

LGTM

@adityapatwardhan adityapatwardhan merged commit 75fe624 into PowerShell:master Feb 21, 2024
@adityapatwardhan adityapatwardhan deleted the RemoveOnlyFinally branch February 22, 2024 00:23
alerickson pushed a commit to alerickson/PSResourceGet that referenced this pull request Apr 1, 2024
alerickson pushed a commit to alerickson/PSResourceGet that referenced this pull request Apr 2, 2024
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.

4 participants