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);
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue