From 80992f7d3307fafa411b3fe4b7d15cd9edf26373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20BOUHOURS?= Date: Mon, 9 Jan 2023 18:42:00 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? }