No effective change - improve error message

This commit is contained in:
Robin Bygrave
2015-08-31 15:36:56 +12:00
parent 3f0f5c7fde
commit 76783d525a
@@ -1325,7 +1325,7 @@ public class BeanDescriptorManager implements BeanDescriptorMap {
Integer pos = reflectProps.getPropertyIndex(propName);
if (pos == null) {
if (isPersistentField(prop)) {
throw new IllegalStateException("Property "+propName+" not found in "+reflectProps);
throw new IllegalStateException("Property " + propName + " not found in " + reflectProps + " for type " + beanType);
}
} else {