Sfoglia il codice sorgente

remove unnecessary text from exception message

Nicholas Knize 8 anni fa
parent
commit
51e80e7176

+ 2 - 2
core/src/main/java/org/elasticsearch/action/fieldstats/FieldStats.java

@@ -127,7 +127,7 @@ public abstract class FieldStats<T> 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<T> implements Writeable, ToXContent {
                     isSearchable, isAggregatable, min, max);
             }
             default:
-                throw new IllegalArgumentException("Unknown type 2. " + type);
+                throw new IllegalArgumentException("Unknown type.");
         }
     }