diff --git a/api-rest/index.php b/api-rest/index.php index b0b4a3f..a5b97fa 100644 --- a/api-rest/index.php +++ b/api-rest/index.php @@ -30,7 +30,7 @@ $database = new DatabaseConnection($dsn,$username,$password); } catch (PDOException $e) { echo "ERROR connection"; - $e->getMessage(); + echo $e->getMessage(); header("HTTP/1.0 ".$e->getMessage()); http_response_code(600); // Quel code pour les erreurs PDO? }