Skip to content

Commit

Permalink
Fix alpha version error message (elastic#40406)
Browse files Browse the repository at this point in the history
  • Loading branch information
mushao999 authored and Gurkan Kaymak committed May 27, 2019
1 parent fa07cc3 commit fa1c2c9
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 @@ -257,7 +257,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 fa1c2c9

Please sign in to comment.