Describe the bug
If an incorrect type name is specified to strict-val, an exception occurs, but the error is actually a bug in scriptclass that masks the correct error message. ScriptClass tries to print the typename for a useful error message but generates a different exception instead.
The following error is shown because the variable $propTypeName does not exist anywhere in the module. It should be fixed to just use $type which has the bad name for the correct error message.
Expected behavior
An error message indicating that the type name was not correctly formatted because it was missing the surrounding square brackets.
Describe the bug If an incorrect type name is specified to strict-val, an exception occurs, but the error is actually a bug in scriptclass that masks the correct error message. ScriptClass tries to print the typename for a useful error message but generates a different exception instead.
To Reproduce
The following error is shown because the variable
$propTypeName
does not exist anywhere in the module. It should be fixed to just use$type
which has the bad name for the correct error message.Expected behavior An error message indicating that the type name was not correctly formatted because it was missing the surrounding square brackets.