Log insertion error instead of throwing them

modifié:         core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php
This commit is contained in:
Benjamin Perche
2014-08-06 09:07:37 +02:00
parent f69878b623
commit 74ec51b06e

View File

@@ -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());
}
}