Skip to content

Commit

Permalink
remove unnecessary text from exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
nknize committed Jan 18, 2017
1 parent 84e4f91 commit 51e80e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public String getDisplayType() {
case 5:
return "geo_point";
default:
throw new IllegalArgumentException("Unknown type 1. " + type);
throw new IllegalArgumentException("Unknown type.");
}
}

Expand Down Expand Up @@ -768,7 +768,7 @@ public static FieldStats readFrom(StreamInput in) throws IOException {
isSearchable, isAggregatable, min, max);
}
default:
throw new IllegalArgumentException("Unknown type 2. " + type);
throw new IllegalArgumentException("Unknown type.");
}
}

Expand Down

0 comments on commit 51e80e7

Please sign in to comment.