diff --git a/core/src/main/java/org/elasticsearch/action/fieldstats/FieldStats.java b/core/src/main/java/org/elasticsearch/action/fieldstats/FieldStats.java index 92c846e7c0e..0fb82ba4e1b 100644 --- a/core/src/main/java/org/elasticsearch/action/fieldstats/FieldStats.java +++ b/core/src/main/java/org/elasticsearch/action/fieldstats/FieldStats.java @@ -127,7 +127,7 @@ public abstract class FieldStats implements Writeable, ToXContent { case 5: return "geo_point"; default: - throw new IllegalArgumentException("Unknown type 1. " + type); + throw new IllegalArgumentException("Unknown type."); } } @@ -768,7 +768,7 @@ public abstract class FieldStats implements Writeable, ToXContent { isSearchable, isAggregatable, min, max); } default: - throw new IllegalArgumentException("Unknown type 2. " + type); + throw new IllegalArgumentException("Unknown type."); } }