Skip to content

Commit 1c24aa9

Browse files
- Added checks message for exception
1 parent c556e24 commit 1c24aa9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,11 @@ private String checkEngine(String engineName, String osType ) throws CxExceptio
428428
try{
429429
enginePath= Execution.executeCommand((arguments), logger, line->line);
430430
}
431-
catch (CxException e){
432-
throw new CxException(1,"Engine "+engineName+" is not installed on the system or not set at location /usr/local/bin");
433-
}
431+
throw new CxException(
432+
1,
433+
"Engine '" + engineName + "' is not installed or not found at /usr/local/bin)."
434+
);
435+
434436

435437
return enginePath;
436438
case OS_WINDOWS:

0 commit comments

Comments
 (0)