From be4e0b9e7136236c579c4c0fc719ac4fc1d9a004 Mon Sep 17 00:00:00 2001 From: Jill Stingray Date: Tue, 30 Jun 2020 07:29:49 +0000 Subject: [PATCH] Make DB error messages more clear --- chandler/Database/DatabaseConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chandler/Database/DatabaseConnection.php b/chandler/Database/DatabaseConnection.php index d4d2bcc..5aee7e2 100644 --- a/chandler/Database/DatabaseConnection.php +++ b/chandler/Database/DatabaseConnection.php @@ -19,7 +19,7 @@ class DatabaseConnection if($ex->getCode() === "42000") chandler_db_busy(); else - chandler_http_panic(503, "Service Temporarily Unavailable", "Error estabilishing database connection."); + chandler_http_panic(503, "Service Temporarily Unavailable", "Error estabilishing database connection: " . $ex->getMessage()); } $storage = new FileStorage($tmpFolder ?? (CHANDLER_ROOT . "/tmp/cache/database"));