SUPPORT-8841: change to exception

This commit is contained in:
Alexandr Shalaginov 2025-01-13 08:17:07 +03:00
parent 58f6ff8666
commit af4acfaad2

View file

@ -102,9 +102,9 @@ public class FileScanService {
private void checkScanResult(String result, String originalFileName) {
if (!result.contains(passwordProtectedResultName)) {
LOGGER.warn("File scan result doesn't contains \"{}\", "
throw new AvException(String.format("File scan result doesn't contains \"%s\", "
+ "please check property \"password.protected.result.name\" is correct",
passwordProtectedResultName);
passwordProtectedResultName));
}
for (String line : result.split("\n")) {