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

Include original exception in when throwing a BindingException #513

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

Socolin
Copy link
Contributor

@Socolin Socolin commented Mar 5, 2025

🤔 What's changed?

Include original exception in when throwing a BindingException

⚡️ What's your motivation?

Imrprove error message and don't hide the stack when an error occurs. It should help #471 (But I think the catch ArgumentException should still be reworked)

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

@304NotModified
Copy link
Contributor

Could you please add an unit test for this?

…Exception

It should help with #471, I think the `catch (ArgumentException)` should be reworked, but this is a very quick improvement that will keep the stack readable in the test output.
@Socolin
Copy link
Contributor Author

Socolin commented Mar 6, 2025

I updated the existing test

Copy link
Contributor

@gasparnagy gasparnagy left a comment

Choose a reason for hiding this comment

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

Thx!

@gasparnagy gasparnagy merged commit 7c9b2aa into main Mar 6, 2025
6 checks passed
@gasparnagy gasparnagy deleted the Socolin-patch-1 branch March 6, 2025 10:05
@gasparnagy
Copy link
Contributor

Released in 2.4.0: https://github.com/orgs/reqnroll/discussions/515

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.

3 participants