diff --git a/Listener/VirusScannerListener.php b/Listener/VirusScannerListener.php index f3e4ff4b7f91db45231c3ef4c999d15f15f966fd..cbe9a402523fa2e6a1c2476cb45c54eea2693eec 100644 --- a/Listener/VirusScannerListener.php +++ b/Listener/VirusScannerListener.php @@ -57,7 +57,7 @@ class VirusScannerListener $file->setMetadata($meta); if($result->hasVirus()) { - throw new RejectedFileException($file, "Found a virus !"); + throw new RejectedFileException($file, $desc ? sprintf("Found the %s virus !", $desc) : 'Virus found !'); } } }