Skip to content

Commit

Permalink
Polish validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-elastic committed Jan 16, 2024
1 parent 6a5a15d commit d0768a4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ public List<String> getTexts() {
public ActionRequestValidationException validate() {
ActionRequestValidationException validationException = null;
if (grokPattern == null) {
validationException = addValidationError("[" + GROK_PATTERN.getPreferredName() + "] missing.", validationException);
validationException = addValidationError("[" + GROK_PATTERN.getPreferredName() + "] missing", validationException);
}
if (texts == null || texts.isEmpty()) {
validationException = addValidationError("[" + TEXTS.getPreferredName() + "] missing or empty.", validationException);
if (texts == null) {
validationException = addValidationError("[" + TEXTS.getPreferredName() + "] missing", validationException);
}
return validationException;
}
Expand Down

0 comments on commit d0768a4

Please sign in to comment.