Skip to content

Commit

Permalink
Fix alpha version error message (#40406)
Browse files Browse the repository at this point in the history
  • Loading branch information
mushao999 authored and rjernst committed May 22, 2019
1 parent 5d8605c commit d4b5933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/org/elasticsearch/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public static Version fromString(String version) {
if (buildStr.startsWith("alpha")) {
assert rawMajor >= 5 : "major must be >= 5 but was " + major;
build = Integer.parseInt(buildStr.substring(5));
assert build < 25 : "expected a beta build but " + build + " >= 25";
assert build < 25 : "expected a alpha build but " + build + " >= 25";
} else if (buildStr.startsWith("Beta") || buildStr.startsWith("beta")) {
build = betaOffset + Integer.parseInt(buildStr.substring(4));
assert build < 50 : "expected a beta build but " + build + " >= 50";
Expand Down

0 comments on commit d4b5933

Please sign in to comment.