-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Wrap assumption violations in ErrorCollector #1395
Wrap assumption violations in ErrorCollector #1395
Conversation
d9e0589
to
0371aba
Compare
if (error instanceof AssumptionViolatedException) { | ||
AssertionError e = new AssertionError(error.getMessage()); | ||
e.initCause(error); | ||
error = e; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor thing: I'm generally not happy with reassigning method parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed (though for a method this small, I find the previous version readable and slightly better than the duplication in the updated code)
d5e7b04
to
867f186
Compare
Note there are two commits, and I want to keep them separate. I will be happy to do the merge. If this is approved I'll also merge #1371 |
Merged. |
added to the release notes |
addError() and checkSucceeds() now wrap assumption violations.