Skip to content

Commit 57f782f

Browse files
committed
Fail when user wants to provided metadata for already existing library version
1 parent c34e9dc commit 57f782f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tck-build-logic/src/main/java/org/graalvm/internal/tck/ScaffoldTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private void writeCoordinatesMetadataRootJson(Path metadataRoot, Coordinates coo
252252

253253
private void updateCoordinatesMetadataRootJson(Path metadataRoot, Coordinates coordinates) throws IOException {
254254
if (!shouldAddNewMetadataEntry(metadataRoot, coordinates)) {
255-
return;
255+
throw new RuntimeException("Metadata for " + coordinates + " already exists!");
256256
}
257257

258258
File metadataIndex = metadataRoot.resolve("index.json").toFile();

0 commit comments

Comments
 (0)