This is actually better approach to this problem

Show only message without trace
This commit is contained in:
tobi132 2019-12-03 00:52:28 +01:00
parent 56616b805f
commit f85fad447e

View File

@ -110,12 +110,11 @@ defined('MYAAC') or die('Direct access not allowed!');
return; // installer will take care of this return; // installer will take care of this
} }
die('ERROR: Cannot connect to MySQL database.<br/>' . throw new RuntimeException('ERROR: Cannot connect to MySQL database.<br/>' .
'Possible reasons:' . 'Possible reasons:' .
'<ul>' . '<ul>' .
'<li>MySQL is not configured propertly in <i>config.lua</i>.</li>' . '<li>MySQL is not configured propertly in <i>config.lua</i>.</li>' .
'<li>MySQL server is not running.</li>' . '<li>MySQL server is not running.</li>' .
'</ul>' . $error); '</ul>' . $error->getMessage());
} }
?>