Let's report something useful in these error messages.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2568 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -90,8 +90,7 @@ public class FieldMask
|
||||
{
|
||||
Integer index = _descripMap.get(fieldName);
|
||||
if (index == null) {
|
||||
String errmsg = "Passed in field not in mask.";
|
||||
throw new IllegalArgumentException(errmsg);
|
||||
throw new IllegalArgumentException("Field not in mask: " + fieldName);
|
||||
}
|
||||
return _modified[index.intValue()];
|
||||
}
|
||||
@@ -117,8 +116,7 @@ public class FieldMask
|
||||
{
|
||||
Integer index = _descripMap.get(fieldName);
|
||||
if (index == null) {
|
||||
String errmsg = "";
|
||||
throw new IllegalArgumentException(errmsg);
|
||||
throw new IllegalArgumentException("Field not in mask: " + fieldName);
|
||||
}
|
||||
_modified[index.intValue()] = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user