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 {
echo $this->dsn." ".$this->login." ".$this->password;
$connection = new Connection($this->dsn,$this->login,$this->password);
sleep(3);
echo "\nOKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK\n";
}catch (PDOException $e){
echo $e->getMessage()." ET ".$e->getTraceAsString();
}catch (PDOException){
throw new PDOException();
}
return $connection;

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

Loading…
Cancel
Save