Log insertion error instead of throwing them
modifié: core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php
This commit is contained in:
@@ -25,6 +25,7 @@ use Symfony\Component\DependencyInjection\SimpleXMLElement;
|
|||||||
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
|
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
|
||||||
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
|
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
|
||||||
use Symfony\Component\DependencyInjection\Loader\FileLoader;
|
use Symfony\Component\DependencyInjection\Loader\FileLoader;
|
||||||
|
use Thelia\Log\Tlog;
|
||||||
use Thelia\Model\Export;
|
use Thelia\Model\Export;
|
||||||
use Thelia\Model\ExportCategory;
|
use Thelia\Model\ExportCategory;
|
||||||
use Thelia\Model\ExportCategoryQuery;
|
use Thelia\Model\ExportCategoryQuery;
|
||||||
@@ -369,7 +370,7 @@ class XmlFileLoader extends FileLoader
|
|||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$con->rollBack();
|
$con->rollBack();
|
||||||
|
|
||||||
throw $e;
|
Tlog::getInstance()->error($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -450,7 +451,7 @@ class XmlFileLoader extends FileLoader
|
|||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$con->rollBack();
|
$con->rollBack();
|
||||||
|
|
||||||
throw $e;
|
Tlog::getInstance()->error($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -497,7 +498,7 @@ class XmlFileLoader extends FileLoader
|
|||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$con->rollBack();
|
$con->rollBack();
|
||||||
|
|
||||||
throw $e;
|
Tlog::getInstance()->error($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -577,7 +578,7 @@ class XmlFileLoader extends FileLoader
|
|||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$con->rollBack();
|
$con->rollBack();
|
||||||
|
|
||||||
throw $e;
|
Tlog::getInstance()->error($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user