diff --git a/Source/API/script/Config/ConnectClass.php b/Source/API/script/Config/ConnectClass.php index 6fff745..8b397c1 100644 --- a/Source/API/script/Config/ConnectClass.php +++ b/Source/API/script/Config/ConnectClass.php @@ -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; diff --git a/Source/API/script/Gateway/GatewayForm.php b/Source/API/script/Gateway/GatewayForm.php index d2c6a55..bce2212 100644 --- a/Source/API/script/Gateway/GatewayForm.php +++ b/Source/API/script/Gateway/GatewayForm.php @@ -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(); } }