NIFI-49: include name of default value if it is not allowed in a property descriptor

This commit is contained in:
Mark Payne 2014-12-15 13:21:59 -05:00
parent e04a55d3a5
commit f0bea5c156
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ public final class PropertyDescriptor implements Comparable<PropertyDescriptor>
throw new IllegalStateException("Must specify a name");
}
if (!isValueAllowed(defaultValue)) {
throw new IllegalStateException("Default value is not in the set of allowable values");
throw new IllegalStateException("Default value '" + defaultValue + "' is not in the set of allowable values");
}
return new PropertyDescriptor(this);