From 10a198385f99635be8637988b2e2addac461a4c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr>
Date: Fri, 30 Jan 2015 11:52:29 +0100
Subject: [PATCH] =?UTF-8?q?VirusScannerListener:=20pr=C3=A9cise=20le=20nom?=
 =?UTF-8?q?=20du=20virus=20trouv=C3=A9=20dans=20l'exception.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Listener/VirusScannerListener.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Listener/VirusScannerListener.php b/Listener/VirusScannerListener.php
index f3e4ff4b..cbe9a402 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 !');
         }
     }
 }
-- 
GitLab