Merge pull request #20041 from tsouza/fix/issue-19142

Make exception message more descriptive
This commit is contained in:
Thiago Souza 2016-08-18 17:31:16 -03:00 committed by GitHub
commit 8281a3ce79
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public final class InnerHitsContext {
public void addInnerHitDefinition(BaseInnerHits innerHit) {
if (innerHits.containsKey(innerHit.getName())) {
throw new IllegalArgumentException("inner_hit definition with the name [" + innerHit.getName() +
"] already exists. Use a different inner_hit name");
"] already exists. Use a different inner_hit name or define one explicitly");
}
innerHits.put(innerHit.getName(), innerHit);