mirror of https://github.com/apache/nifi.git
NIFI-49: include name of default value if it is not allowed in a property descriptor
This commit is contained in:
parent
e04a55d3a5
commit
f0bea5c156
|
@ -425,7 +425,7 @@ public final class PropertyDescriptor implements Comparable<PropertyDescriptor>
|
||||||
throw new IllegalStateException("Must specify a name");
|
throw new IllegalStateException("Must specify a name");
|
||||||
}
|
}
|
||||||
if (!isValueAllowed(defaultValue)) {
|
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);
|
return new PropertyDescriptor(this);
|
||||||
|
|
Loading…
Reference in New Issue