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

Better messages for XXXInitialize and XXXCleanup #1147

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

Evangelink
Copy link
Member

@Evangelink Evangelink commented Jul 11, 2022

Description

Use the same informative message for all XXXInitialize and XXXCleanup methods whatever the kind of exception. We used to have a simpler handling for Assert exceptions that was removing the information about the method throwing the exception.

Related issue

Fixes #1142 and fixes AB#1543904

Use the same informative message for all XXXInitialize and XXXCleanup methods whatever the kind of exception. We used to have a simpler handling for Assert exceptions that was removing the information about the method throwing the exception.
@Evangelink Evangelink requested a review from Haplois July 11, 2022 15:14
@Haplois Haplois merged commit d37e9e5 into microsoft:main Jul 11, 2022
@Evangelink Evangelink deleted the initialize-cleanup-exception branch July 11, 2022 17:51
Copy link
Member Author

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

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

DAMN! I forgot to publish my comments...

@Haplois Please review them, I will do a follow-up PR if needed.

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.

Why are AssertExceptions thrown within Assembly/Class/Test Initializations differentiated?
2 participants