because of course '<function>' not the name of the function. And anyway there is no ambiguity here that we are dealing with a function that threw, so why be conditional about including the exception message?
This is a fairly serious omission in that when using a type function to implement validation on arguments, invalid input is never accompanied by the message intended to indicate why it is invalid.
In lib/argument_parser.js there is
The action.type.name expression sets
name
to the name of the function (under nodejs at least). Later a check failsbecause of course
'<function>'
not the name of the function. And anyway there is no ambiguity here that we are dealing with a function that threw, so why be conditional about including the exception message?This is a fairly serious omission in that when using a type function to implement validation on arguments, invalid input is never accompanied by the message intended to indicate why it is invalid.