Remove Dockerfile and server startup script; update home.php error handling
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user