mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 21:05:23 +00:00
Build: improve verifyVersions error message (#25006)
The error message was confusing because it doesn't include unreleased versions like CURRENT.
This commit is contained in:
parent
0435ec8ede
commit
6a167a7ba8
@ -151,9 +151,10 @@ task('verifyVersions') {
|
|||||||
|
|
||||||
// Finally, compare!
|
// Finally, compare!
|
||||||
if (!knownVersions.equals(actualVersions)) {
|
if (!knownVersions.equals(actualVersions)) {
|
||||||
throw new GradleException("out-of-date versions\nActual :" +
|
throw new GradleException("out-of-date released versions\nActual :" +
|
||||||
actualVersions + "\nExpected:" + knownVersions +
|
actualVersions + "\nExpected:" + knownVersions +
|
||||||
"; update Version.java")
|
"\nUpdate Version.java. Note that Version.CURRENT doesn't count " +
|
||||||
|
"because it is not released.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user