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

fix: properly re-throw caught exception in eager connection code #550

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

malandis
Copy link
Contributor

To preserve the original stack trace, one needs to use a throw;
statement, not re-throw the original exception. See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/exception-handling-statements

To preserve the original stack trace, one needs to use a `throw;`
statement, not re-throw the original exception. See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/exception-handling-statements
@malandis malandis marked this pull request as ready for review March 15, 2024 22:38
@malandis malandis requested a review from a team March 15, 2024 22:38
nand4011
nand4011 previously approved these changes Mar 15, 2024
Copy link
Contributor

@nand4011 nand4011 left a comment

Choose a reason for hiding this comment

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

LGTM, but github really doesn't like that e isn't used.

@malandis
Copy link
Contributor Author

LGTM, but github really doesn't like that e isn't used.

Fixed in 307cf63

@malandis malandis requested a review from nand4011 March 18, 2024 17:57
@malandis malandis merged commit c1ce272 into main Mar 18, 2024
10 checks passed
@malandis malandis deleted the fix/properly-re-throw-caught-exception branch March 18, 2024 18:07
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.

2 participants