Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8-rc-2, 1.9-beta-1
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
FactoryBuilderSupport exception messages could be improved in checkValueIsType() and checkValueIsTypeNotString().
Today the messages read: "The value of argument 'foo' must be of type Bar."
This doesn't tell the user what the input was that caused the failure.
A better message is: "The value of argument 'foo' must be of type Bar. Found: Baz"
This is an easy change to make, and cannot cause a NPE or anything like that.
Should this be rolled back to 1.8 or 1.7?