Skip to content
Snippets Groups Projects
Commit 1f26d911 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout des echos en plus des exceptions pour l'usage en console

parent 64c40138
Branches
Tags
No related merge requests found
Pipeline #25002 passed
...@@ -18,9 +18,11 @@ class SqlHelperService { ...@@ -18,9 +18,11 @@ class SqlHelperService {
try { try {
$tmp = $res->fetchAllAssociative(); $tmp = $res->fetchAllAssociative();
} catch (DRV_Exception $e) { } catch (DRV_Exception $e) {
echo "033[31mUn problème est survenu lors de l'utilisation du drivers\033[0m";
throw new RuntimeException("Un problème est survenu [DRV_Exception]", 0, $e); throw new RuntimeException("Un problème est survenu [DRV_Exception]", 0, $e);
} }
} catch (DBA_Exception $e) { } catch (DBA_Exception $e) {
echo "033[31mUn problème est survenu lors de l'utilisation de la base de donnée\033[0m";
throw new RuntimeException("Un problème est survenu [DBA_Exception]", 0, $e); throw new RuntimeException("Un problème est survenu [DBA_Exception]", 0, $e);
} }
return $tmp; return $tmp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment