Skip to content
Snippets Groups Projects
Commit d3a951f4 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Meilleur affichage des erreurs en provenance de la BDD

parent cceb394d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment