SUPPORT-8841: change to exception
This commit is contained in:
parent
58f6ff8666
commit
af4acfaad2
1 changed files with 2 additions and 2 deletions
|
|
@ -102,9 +102,9 @@ public class FileScanService {
|
||||||
|
|
||||||
private void checkScanResult(String result, String originalFileName) {
|
private void checkScanResult(String result, String originalFileName) {
|
||||||
if (!result.contains(passwordProtectedResultName)) {
|
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",
|
+ "please check property \"password.protected.result.name\" is correct",
|
||||||
passwordProtectedResultName);
|
passwordProtectedResultName));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String line : result.split("\n")) {
|
for (String line : result.split("\n")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue