diff --git a/module/Application/src/Traits/TranslatorTrait.php b/module/Application/src/Traits/TranslatorTrait.php index 98eb895a6e93fabf71dc1b618079df5b2b41cd9f..115e3f7ac1cdcaf5e72ddbb8d397fc4a1507b97b 100644 --- a/module/Application/src/Traits/TranslatorTrait.php +++ b/module/Application/src/Traits/TranslatorTrait.php @@ -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); }