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

master
dorian.hodin 2 years ago
parent aff2c1fc2c
commit d5d7094f07

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

Loading…
Cancel
Save