Skip to content

Commit

Permalink
Fix exception message in RestRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Iarwa1n authored and rjernst committed Jun 19, 2015
1 parent f0ecb3e commit 4b9b2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/elasticsearch/rest/RestRequest.java
Expand Up @@ -120,7 +120,7 @@ public long paramAsLong(String key, long defaultValue) {
try {
return Long.parseLong(sValue);
} catch (NumberFormatException e) {
throw new IllegalArgumentException("Failed to parse int parameter [" + key + "] with value [" + sValue + "]", e);
throw new IllegalArgumentException("Failed to parse long parameter [" + key + "] with value [" + sValue + "]", e);
}
}

Expand Down

0 comments on commit 4b9b2d9

Please sign in to comment.