diff --git a/system/database.php b/system/database.php index d0f3fbda..4ca57a77 100644 --- a/system/database.php +++ b/system/database.php @@ -110,12 +110,11 @@ defined('MYAAC') or die('Direct access not allowed!'); return; // installer will take care of this } - die('ERROR: Cannot connect to MySQL database.
' . + throw new RuntimeException('ERROR: Cannot connect to MySQL database.
' . 'Possible reasons:' . '' . $error); + '' . $error->getMessage()); - } -?> \ No newline at end of file + } \ No newline at end of file