-
Notifications
You must be signed in to change notification settings - Fork 21
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
More informative error messages #1056
Conversation
…. Also, pretty-print the parameters and validation errors to make errors easier to parse.
…e they don't provide any context
Codecov Report
@@ Coverage Diff @@
## master #1056 +/- ##
==========================================
+ Coverage 93.92% 94.03% +0.11%
==========================================
Files 142 144 +2
Lines 6911 7030 +119
Branches 688 694 +6
==========================================
+ Hits 6491 6611 +120
Misses 309 309
+ Partials 111 110 -1
Continue to review full report at Codecov.
|
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 good! 👍
Closes #1055
I have:
Description
This PR improves the error messages returned from flowmachine when query parameter validation fails. The message now includes the parameters which failed to validate, and prints them in a more readable way on the command line.
It also adds an explicit
else
clause in a helper function, to avoid random errors caused by the fact thatspatial_unit_args
is potentially undefined.Previous error message:
New error message: