SUPPORT-8836:fixes
This commit is contained in:
parent
7a3e4b1d50
commit
1e4a9a234e
1 changed files with 4 additions and 4 deletions
|
|
@ -61,10 +61,10 @@ public class FileScanService {
|
|||
processBuilder.redirectErrorStream(true);
|
||||
Process process = processBuilder.start();
|
||||
int exitCode = process.waitFor();
|
||||
if (exitCode == 0 || exitCode == 72) {
|
||||
return exitCode;
|
||||
if (exitCode != 0 && exitCode != 72) {
|
||||
throw new AvException(
|
||||
"KESL error scanning file: " + originalFileName + ", exit code: " + exitCode);
|
||||
}
|
||||
throw new AvException(
|
||||
"KESL error scanning file: " + originalFileName + ", exit code: " + exitCode);
|
||||
return exitCode;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue