Try to display PDO error message 2
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent d5d7094f07
commit 5d69a0b13c

@ -23,10 +23,7 @@ class ConnectClass{
try { try {
echo $this->dsn." ".$this->login." ".$this->password; echo $this->dsn." ".$this->login." ".$this->password;
$connection = new Connection($this->dsn,$this->login,$this->password); $connection = new Connection($this->dsn,$this->login,$this->password);
sleep(3); }catch (PDOException){
echo "\nOKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK\n";
}catch (PDOException $e){
echo $e->getMessage()." ET ".$e->getTraceAsString();
throw new PDOException(); throw new PDOException();
} }
return $connection; return $connection;

@ -15,8 +15,8 @@ class GatewayForm
{ {
try{ try{
$this->connection = (new ConnectClass)->connect(); $this->connection = (new ConnectClass)->connect();
echo "ici???"; }catch(PDOException $e){
}catch(PDOException){ echo $e->getMessage()." ET ".$e->getTraceAsString();
throw new PDOException(); throw new PDOException();
} }
} }

Loading…
Cancel
Save