You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENH: Make the schema validation error for non-existing params more informative (#2568)
* Make the schema validation error for non-existing params more informative
* Neatly format the existing params as a table
* Use more reliable way of returning the non-existing param name
My original approach sometimes returned the name of an existing
parameter. This commit uses the same approach as the fallback but
extracts just the parameter name from the message string.
* Break out table formatting into its own function
* Add changes into code generation file
* Remove mistakingly added old lines
* Only show existing parameters if an unknown parameter was used
* Update tests to check for detailed parameter errors
* Trim error messages to be more to the point by removing unhelpful info
* Add a general heading to error messages with multiple errors so that they work nicely with the cmopressed error message format
* Remove "self" from listed params
* Blake format and use cleandoc for proper indendation in the source
* Update old test message to remove what is no longer in the error message
* Move invalid y option tests next to each other
* Black format
* Update test to account for missing self
* Refine the message construction and move it to the else clause where it will be used
* Remove flake8 test for multline line strings with trailing whitespace
* Add latest updates to source generator file as well
* Remove redundant schema_path variable and allow unknown encodings params to trigger the parameter table
Co-authored-by: Stefan Binder <[email protected]>
* Remove redundant assert
* Add latest updates to source generator file as well
* Include changes to tests in tools code generation file
---------
Co-authored-by: Stefan Binder <[email protected]>
0 commit comments