SUPPORT-8836:fixes

This commit is contained in:
adel.ka 2024-12-31 03:07:39 +03:00
parent 7a3e4b1d50
commit 1e4a9a234e

View file

@ -61,10 +61,10 @@ public class FileScanService {
processBuilder.redirectErrorStream(true); processBuilder.redirectErrorStream(true);
Process process = processBuilder.start(); Process process = processBuilder.start();
int exitCode = process.waitFor(); int exitCode = process.waitFor();
if (exitCode == 0 || exitCode == 72) { if (exitCode != 0 && exitCode != 72) {
return exitCode; throw new AvException(
"KESL error scanning file: " + originalFileName + ", exit code: " + exitCode);
} }
throw new AvException( return exitCode;
"KESL error scanning file: " + originalFileName + ", exit code: " + exitCode);
} }
} }