Commit d3a951f4 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Meilleur affichage des erreurs en provenance de la BDD

parent cceb394d
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/src/Traits/TranslatorTrait.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ trait TranslatorTrait
     */
    private function translateException(\Exception $exception, $textDomain = 'default', $locale = null): string
    {
        if (!$exception->getPrevious() instanceof \Doctrine\DBAL\Driver\OCI8\OCI8Exception) {
        if (!$exception->getPrevious() instanceof \Doctrine\DBAL\Driver\Exception) {
            // Non gérée donc on retourne l'original'
            return $this->translate($exception->getMessage(), $textDomain, $locale);
        }