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
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -18,9 +18,11 @@ class SqlHelperService {
            try {
                $tmp = $res->fetchAllAssociative();
            } 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);
            }
        } 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);
        }
        return $tmp;