mirror of
https://github.com/openvk/chandler.git
synced 2025-01-22 15:24:15 +03:00
Make DB error messages more clear
This commit is contained in:
parent
f58407575d
commit
be4e0b9e71
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue