Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Schmidt jjschm4 committed Feb 8, 2024
1 parent 8166eda commit 9e2058c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,9 @@ public Object visit(ASTEQNode node, Object data) {

private void incrementTermCountAndCheck() {
if (++termCount > maxTerms) {
log.error("Query has too many terms");
throw new IllegalArgumentException("Too many search terms " + termCount);
String message = "Exceeded max term limit of " + maxTerms;
log.error(message);
throw new IllegalArgumentException(message);
}
}

Expand Down

0 comments on commit 9e2058c

Please sign in to comment.