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
Describe the bug
If a conversion in the constructor of a datatype throws an error, only a very generic error is available:
Option 'some option' is defined with a bad format.
To Reproduce
Have a property of type DirectoryInfo
Supply bad character (mostly happens by accident)
Get general error
Expected behavior
There are some options:
Add the used parameter to the BadFormatConversionError type so the bad formatted input string can be shown in the custom help callback.
Catch TargetInvocationException and add the inner exception to the BadFormatConversionError
Show a message with the message of the exception, especially when the exception is an ArgumentException.
It would then read something like 'Option 'i, input' is defined with "Invalid;Path" which is a bad format: Illegal characters in path.'
The text was updated successfully, but these errors were encountered:
Describe the bug
If a conversion in the constructor of a datatype throws an error, only a very generic error is available:
To Reproduce
Expected behavior
There are some options:
It would then read something like 'Option 'i, input' is defined with "Invalid;Path" which is a bad format: Illegal characters in path.'
The text was updated successfully, but these errors were encountered: