NIFI-49: Included patch from Philip Young to include name of default vlaue when not allowed as a property descriptor value
Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/13160429 Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/13160429 Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/13160429 Branch: refs/heads/develop Commit: 13160429777e6a48a7833174a99f2771c11649ed Parents: e04a55d Author: Mark Payne <marka...@hotmail.com> Authored: Mon Dec 15 13:28:09 2014 -0500 Committer: Mark Payne <marka...@hotmail.com> Committed: Mon Dec 15 13:28:09 2014 -0500 ---------------------------------------------------------------------- .../main/java/org/apache/nifi/components/PropertyDescriptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/13160429/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java ---------------------------------------------------------------------- diff --git a/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java b/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java index c95d449..ba0f7dc 100644 --- a/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java +++ b/nifi-api/src/main/java/org/apache/nifi/components/PropertyDescriptor.java @@ -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);