commando icon indicating copy to clipboard operation
commando copied to clipboard

Invalid option->default() does not prettify exceptions

Open emanb29 opened this issue 10 years ago • 1 comments

When a value passed to default() does not pass a must() closure, the output should be formatted in the standard prettyprint. However, the current behavior is to throw an ugly exception and stacktrace.

emanb29 avatar Dec 09 '15 21:12 emanb29

The user creating the command should validate the value being supplied to default is an acceptable default. While this type of error could be caught, it should be left up to the user to handle this type of error, since this is not caused by end user input but a mistake made by the programmer using the library.

-1

NeoVance avatar Jun 12 '16 03:06 NeoVance