nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marka...@apache.org
Subject [1/4] incubator-nifi git commit: NIFI-49: include name of default value if it is not allowed in a property descriptor
Date Mon, 15 Dec 2014 18:57:06 GMT
Repository: incubator-nifi
Updated Branches:
  refs/heads/develop e04a55d3a -> 9e60aa0f2


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


Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/f0bea5c1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/f0bea5c1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/f0bea5c1

Branch: refs/heads/develop
Commit: f0bea5c156fa0bfc1d7773ae45ea73ba594ba77a
Parents: e04a55d
Author: Mark Payne <markap14@hotmail.com>
Authored: Mon Dec 15 13:21:59 2014 -0500
Committer: Mark Payne <markap14@hotmail.com>
Committed: Mon Dec 15 13:21:59 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/f0bea5c1/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..19600ab 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);


Mime
View raw message