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

Signed-off-by: Aldrin Piri <aldrin@apache.org>
This commit is contained in:
Matt Gilman 2016-01-22 10:07:14 -05:00 committed by Aldrin Piri
parent 93e2c52195
commit 5c36358bc2
1 changed files with 1 additions and 2 deletions

View File

@ -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();
}
}