mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
This is actually better approach to this problem
Show only message without trace
This commit is contained in:
parent
56616b805f
commit
f85fad447e
@ -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());
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
Loading…
x
Reference in New Issue
Block a user