From db7c4d1ddcec8cd026c4dcb73cee8dd762a3ab8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20BOUHOURS?= Date: Mon, 9 Jan 2023 18:40:13 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'api-rest/index.php?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-rest/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api-rest/index.php b/api-rest/index.php index 468d507..b0b4a3f 100644 --- a/api-rest/index.php +++ b/api-rest/index.php @@ -30,6 +30,7 @@ $database = new DatabaseConnection($dsn,$username,$password); } catch (PDOException $e) { echo "ERROR connection"; + $e->getMessage(); header("HTTP/1.0 ".$e->getMessage()); http_response_code(600); // Quel code pour les erreurs PDO? }