SUPPORT-8841: change to exception
This commit is contained in:
parent
f8482124ba
commit
f6fea26f85
1 changed files with 5 additions and 3 deletions
|
|
@ -81,9 +81,11 @@ 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(
|
||||||
+ "please check property \"password.protected.result.name\" is correct",
|
"File scan result doesn't contains \"%s\", "
|
||||||
passwordProtectedResultName);
|
+ "please check property \"password.protected.result.name\" is correct",
|
||||||
|
passwordProtectedResultName
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String line : result.split("\n")) {
|
for (String line : result.split("\n")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue