Skip to content

Commit 6ca6675

Browse files
committed
Handle container tool exit code in container-reuse case
1 parent 30be617 commit 6ca6675

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/util/ExitStatus.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public enum ExitStatus {
4040
DRIVER_TO_BUILDER_ERROR(21),
4141
WATCHDOG_EXIT(30),
4242
REBUILD_AFTER_ANALYSIS(40),
43+
CONTAINER_REUSE(125),
4344
MISSING_METADATA(172),
4445
UNKNOWN(255);
4546

substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ protected int buildImage(List<String> javaArgs, LinkedHashSet<Path> cp, LinkedHa
17701770
}
17711771
int exitStatusCode = bundleSupport.containerSupport.initializeImage();
17721772
switch (ExitStatus.of(exitStatusCode)) {
1773-
case OK -> {
1773+
case OK, CONTAINER_REUSE -> {
17741774
}
17751775
case BUILDER_ERROR -> {
17761776
/* Exit, builder has handled error reporting. */

0 commit comments

Comments
 (0)