-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Convert unexpected parameter validation errors to InvalidParameterError #4084
Conversation
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.
Looks fine, but I wonder if we won't swallow some edge cases that we should handle differently this way? Maybe worth keeping existing error handling and expend it over time as we discover new cases?
This way we can add logging for exceptions in the case of really unexpected ones (and properly handle them if needed).
Wdyt?
@rauchy , thanks for the PR! We've updated a lot of things now that we're Community-driven so - if you're still interested in getting this merged - would you mind rebasing off master to re-run the CI, as well as updating merge conflicts? We're trying to clean up our PR todo list, so if you're not interested, that's fine - we'll close the PR in about a week if we don't hear back. If you're interested in reopening the PR afterwards, we would also very much welcome that. |
6ae3438
to
82fe65c
Compare
96c6751
to
51805e9
Compare
Codecov Report
@@ Coverage Diff @@
## master #4084 +/- ##
==========================================
- Coverage 60.87% 60.86% -0.02%
==========================================
Files 155 155
Lines 12718 12714 -4
Branches 1729 1730 +1
==========================================
- Hits 7742 7738 -4
Misses 4747 4747
Partials 229 229
|
This one kind of looks like it could have more test coverage added, to get the Codecov pieces to pass? |
Yeah, it was passing before I rebased, heh |
Alright, that's the best I'm getting this PR. 😅 there was a coverage change because all error types were being converted to Fixing that, there's no indirect coverage changes, but the coverage is going down anyway because we are removing lines that were fully covered - i.e. the percentage of fully covered lines goes down because the absolute number of fully covered lines is going down. |
Cool, good stuff @guidopetri. 😁 |
It took me like two hours to figure out the fix lol. Lesson learned: don't use bare exceptions |
What type of PR is this? (check all applicable)
Description
A quick follow up to #4072