From 04eb12d806e89c72acfbf3e909c00a21ab7efee1 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Mon, 30 Jan 2023 14:35:29 +0100 Subject: [PATCH] Test connection --- Source/API/script/config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/API/script/config.php b/Source/API/script/config.php index c7c0b94..8b1894c 100644 --- a/Source/API/script/config.php +++ b/Source/API/script/config.php @@ -13,7 +13,7 @@ try { echo "Connection OK !"; }catch (PDOException $PDOException){ - - echo "Connection Error"; - return http_response_code(404); + echo $PDOException->getMessage(); + echo $PDOException->getCode(); + return http_response_code(404); }