Skip to content

Ensure that exception is not swallowed by finally block#1569

Merged
adityapatwardhan merged 2 commits intoPowerShell:masterfrom
adityapatwardhan:RemoveOnlyFinally
Feb 21, 2024
Merged

Ensure that exception is not swallowed by finally block#1569
adityapatwardhan merged 2 commits intoPowerShell:masterfrom
adityapatwardhan:RemoveOnlyFinally

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