Skip to content

Commit 51e80e7

Browse files
committed
remove unnecessary text from exception message
1 parent 84e4f91 commit 51e80e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/elasticsearch/action/fieldstats/FieldStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public String getDisplayType() {
127127
case 5:
128128
return "geo_point";
129129
default:
130-
throw new IllegalArgumentException("Unknown type 1. " + type);
130+
throw new IllegalArgumentException("Unknown type.");
131131
}
132132
}
133133

@@ -768,7 +768,7 @@ public static FieldStats readFrom(StreamInput in) throws IOException {
768768
isSearchable, isAggregatable, min, max);
769769
}
770770
default:
771-
throw new IllegalArgumentException("Unknown type 2. " + type);
771+
throw new IllegalArgumentException("Unknown type.");
772772
}
773773
}
774774

0 commit comments

Comments
 (0)