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

Improve error message when parsing of optional enum option fails #120

Open
dlemstra opened this issue Jan 17, 2024 · 0 comments
Open

Improve error message when parsing of optional enum option fails #120

dlemstra opened this issue Jan 17, 2024 · 0 comments

Comments

@dlemstra
Copy link

When the parsing of an optional parameter that is an enum fails the following error message is printed:

Error: Option 'foo' requires Nullable`1 value. 'bar' cannot be converted to Nullable`1 value.

It would be nice if the Nullable would be removed and the type of the enumeration would be shown instead. The same could be said for int?. Can this error message be improved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant