remove unnecessary text from exception message
This commit is contained in:
parent
84e4f91253
commit
51e80e7176
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue