remove unnecessary text from exception message

This commit is contained in:
Nicholas Knize 2017-01-18 14:51:56 -06:00
parent 84e4f91253
commit 51e80e7176
1 changed files with 2 additions and 2 deletions

View File

@ -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.");
}
}