Skip to content

Commit d5888b2

Browse files
mushao999rjernst
authored andcommitted
Fix alpha version error message (#40406)
1 parent 145c3be commit d5888b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public static Version fromString(String version) {
257257
if (buildStr.startsWith("alpha")) {
258258
assert rawMajor >= 5 : "major must be >= 5 but was " + major;
259259
build = Integer.parseInt(buildStr.substring(5));
260-
assert build < 25 : "expected a beta build but " + build + " >= 25";
260+
assert build < 25 : "expected a alpha build but " + build + " >= 25";
261261
} else if (buildStr.startsWith("Beta") || buildStr.startsWith("beta")) {
262262
build = betaOffset + Integer.parseInt(buildStr.substring(4));
263263
assert build < 50 : "expected a beta build but " + build + " >= 50";

0 commit comments

Comments
 (0)