SUPPORT-8771:check exitCode
This commit is contained in:
parent
965a90549b
commit
eb555fdcb7
1 changed files with 4 additions and 0 deletions
|
|
@ -57,6 +57,10 @@ public class FileScanService {
|
|||
try (InputStream inputStream = process.getInputStream()) {
|
||||
String result = new String(inputStream.readAllBytes());
|
||||
process.waitFor();
|
||||
int exitCode = process.waitFor();
|
||||
if (exitCode != 0 && exitCode != 72) {
|
||||
throw new AvException("Ошибка KESL, код завершения: " + exitCode);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue