diff --git a/system/database.php b/system/database.php
index d0f3fbda..e5e9657b 100644
--- a/system/database.php
+++ b/system/database.php
@@ -110,12 +110,10 @@ defined('MYAAC') or die('Direct access not allowed!');
return; // installer will take care of this
}
- die('ERROR: Cannot connect to MySQL database.
' .
- 'Possible reasons:' .
- '
' .
- '- MySQL is not configured propertly in config.lua.
' .
- '- MySQL server is not running.
' .
- '
' . $error);
+ throw new SensitiveException('ERROR: Cannot connect to MySQL database.' . PHP_EOL .
+ 'Possible reasons:' . PHP_EOL .
+ ' * MySQL is not configured propertly in config.lua.' . PHP_EOL .
+ ' * MySQL server is not running.' . PHP_EOL .
+ $error->getMessage());
- }
-?>
\ No newline at end of file
+ }
\ No newline at end of file