Skip to content

Commit 1fa0164

Browse files
committed
Refactor error handling for container engine accessibility in CxWrapper
1 parent cdf00e0 commit 1fa0164

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/main/java/com/checkmarx/ast/wrapper/CxWrapper.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -487,14 +487,9 @@ private String verifyEngineOnMAC(String engineName,List<String>arguments) throws
487487
}
488488
}
489489

490-
String errorMsg = String.format(
491-
"Container engine '%s' not found. Checked paths: %s. " +
492-
"Please ensure Docker or Podman is installed and accessible. " +
493-
"If installed via Docker Desktop, try launching IntelliJ from terminal: open -a 'IntelliJ IDEA'",
494-
engineName, String.join(", ", fallbackPaths)
490+
throw new CxException(
491+
1, engineName + " is not installed or is not accessible from the system PATH."
495492
);
496-
this.logger.error(errorMsg);
497-
throw new CxException(1, errorMsg);
498493
}
499494

500495
/**

0 commit comments

Comments
 (0)