Skip to content

Commit c7c2a01

Browse files
committed
Build: improve verifyVersions error message (#25006)
The error message was confusing because it doesn't include unreleased versions like CURRENT.
1 parent f06407b commit c7c2a01

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bootstrap.memory_lock

Whitespace-only changes.

core/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,10 @@ task('verifyVersions') {
310310

311311
// Finally, compare!
312312
if (!knownVersions.equals(actualVersions)) {
313-
throw new GradleException("out-of-date versions\nActual :" +
313+
throw new GradleException("out-of-date released versions\nActual :" +
314314
actualVersions + "\nExpected:" + knownVersions +
315-
"; update Version.java")
315+
"\nUpdate Version.java. Note that Version.CURRENT doesn't count " +
316+
"because it is not released.")
316317
}
317318
}
318319
}

0 commit comments

Comments
 (0)