From 51e80e7176f2960e713519d44976ecc47b2e6e1f Mon Sep 17 00:00:00 2001 From: Nicholas Knize Date: Wed, 18 Jan 2017 14:51:56 -0600 Subject: [PATCH] remove unnecessary text from exception message --- .../java/org/elasticsearch/action/fieldstats/FieldStats.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); } }