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

More informative messages for invalid string-value options #98

Open
szhorvat opened this issue Dec 13, 2019 · 0 comments
Open

More informative messages for invalid string-value options #98

szhorvat opened this issue Dec 13, 2019 · 0 comments
Milestone

Comments

@szhorvat
Copy link
Owner

There should be more informative messages for invalid string-value options.

Example:

IGRealizeDegreeSequence with an invalid method issues "Unknown degree sequence realization method."

The error should list valid methods.

Typically, these errors are issued from C++. The string is converted to an integer with Lookup, taking a default value for which the C++ code reports an error. Instead of Lookup, there should be a helper function that gives a more informative error instead of just returning a default value.

@szhorvat szhorvat added this to the 0.4 milestone Dec 13, 2019
@szhorvat szhorvat modified the milestones: 0.4, 0.5 Mar 30, 2020
@szhorvat szhorvat modified the milestones: 0.5, 0.6 Oct 9, 2020
@szhorvat szhorvat modified the milestones: 0.6, next Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant