Skip to content

Commit e0d466d

Browse files
committed
the Pico default exception handler will print the exception and exit. Even if we suppress the exception run runDockerCommand, the end result is not knowing there is an error and return 0 status
1 parent d6de095 commit e0d466d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/oracle/weblogicx/imagebuilder/cli/menu/CreateImage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ public CommandResponse call() throws Exception {
122122
logger.info("docker cmd = " + String.join(" ", cmdBuilder));
123123
Utils.runDockerCommand(isCLIMode, cmdBuilder, dockerLog);
124124
} catch (Exception ex) {
125-
return new CommandResponse(-1, ex.getMessage());
125+
throw ex;
126+
// return new CommandResponse(-1, ex.getMessage());
126127
} finally {
127128
Utils.deleteFilesRecursively(tmpDir);
128129
Utils.deleteFilesRecursively(tmpDir2);

0 commit comments

Comments
 (0)