From 74ec51b06eeab5738a5e0a50d1a162f5aae0eab7 Mon Sep 17 00:00:00 2001 From: Benjamin Perche Date: Wed, 6 Aug 2014 09:07:37 +0200 Subject: [PATCH] =?UTF-8?q?Log=20insertion=20error=20instead=20of=20throwi?= =?UTF-8?q?ng=20them=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20core/lib?= =?UTF-8?q?/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Core/DependencyInjection/Loader/XmlFileLoader.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php b/core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php index 1d1fec0fd..e63cc4183 100644 --- a/core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php +++ b/core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php @@ -25,6 +25,7 @@ use Symfony\Component\DependencyInjection\SimpleXMLElement; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\DependencyInjection\Loader\FileLoader; +use Thelia\Log\Tlog; use Thelia\Model\Export; use Thelia\Model\ExportCategory; use Thelia\Model\ExportCategoryQuery; @@ -369,7 +370,7 @@ class XmlFileLoader extends FileLoader } catch (\Exception $e) { $con->rollBack(); - throw $e; + Tlog::getInstance()->error($e->getMessage()); } } @@ -450,7 +451,7 @@ class XmlFileLoader extends FileLoader } catch (\Exception $e) { $con->rollBack(); - throw $e; + Tlog::getInstance()->error($e->getMessage()); } } @@ -497,7 +498,7 @@ class XmlFileLoader extends FileLoader } catch (\Exception $e) { $con->rollBack(); - throw $e; + Tlog::getInstance()->error($e->getMessage()); } } @@ -577,7 +578,7 @@ class XmlFileLoader extends FileLoader } catch (\Exception $e) { $con->rollBack(); - throw $e; + Tlog::getInstance()->error($e->getMessage()); } }