Repository: nifi
Updated Branches:
  refs/heads/master 93e2c5219 -> 5c36358bc


NIFI-45: - Include entire toString of validation result when referenced 
Controller Services are invalid.

Signed-off-by: Aldrin Piri <[email protected]>


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

Branch: refs/heads/master
Commit: 5c36358bc21256bbb726a3702255385524fd5425
Parents: 93e2c52
Author: Matt Gilman <[email protected]>
Authored: Fri Jan 22 10:07:14 2016 -0500
Committer: Aldrin Piri <[email protected]>
Committed: Sat Jan 23 21:28:46 2016 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/nifi/components/PropertyDescriptor.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/5c36358b/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 77c349a..913bd6f 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
@@ -166,8 +166,7 @@ public final class PropertyDescriptor implements 
Comparable<PropertyDescriptor>
                                 .input(input)
                                 .subject(getName())
                                 .valid(false)
-                                .explanation("Controller Service is not valid: 
"
-                                        + ((result.getExplanation() == null || 
result.getExplanation().trim().isEmpty()) ? "(Service does not provide any 
explanation)" : result.getExplanation()))
+                                .explanation("Controller Service is not valid: 
" + result)
                                 .build();
                     }
                 }

Reply via email to