Remove Dockerfile and server startup script; update home.php error handling

This commit is contained in:
2025-11-25 14:29:11 +01:00
parent 895cbddf06
commit ead3bcadeb
3 changed files with 1 additions and 45 deletions

View File

@@ -31,12 +31,7 @@ $checkConnection = function (string $name) {
$connected = true;
} catch (Exception $connectionError) {
$error = $connectionError->getMessage();
if (method_exists($connectionError, 'getAttributes')) {
$attributes = $connectionError->getAttributes();
if (isset($attributes['message'])) {
$error .= '<br />' . $attributes['message'];
}
}
// Only call getAttributes if the method exists and is callable
if ($name === 'debug_kit') {
$error = 'Try adding your current <b>top level domain</b> to the
<a href="https://book.cakephp.org/debugkit/5/en/index.html#configuration" target="_blank">DebugKit.safeTld</a>