diff options
author | Philip Nicolcev <frugen@gmail.com> | 2016-04-30 15:15:43 -0400 |
---|---|---|
committer | Philip Nicolcev <frugen@gmail.com> | 2016-04-30 15:15:43 -0400 |
commit | 6a4c92984fbe42e4633a6a65792847973f7d36da (patch) | |
tree | 2114347a15c64408d39379d31fc38ba81a023910 | |
parent | 30675b3787479a31d04339f6f78d3a064be72f0a (diff) | |
download | AJAX-Chat-6a4c92984fbe42e4633a6a65792847973f7d36da.zip AJAX-Chat-6a4c92984fbe42e4633a6a65792847973f7d36da.tar.gz AJAX-Chat-6a4c92984fbe42e4633a6a65792847973f7d36da.tar.bz2 |
Display install errors
-rw-r--r-- | chat/install.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chat/install.php b/chat/install.php index 63c580f..ac579a3 100644 --- a/chat/install.php +++ b/chat/install.php @@ -9,6 +9,7 @@ // Show all errors: error_reporting(E_ALL); +ini_set('display_errors', 1); // Remember to set up the config file to point to your database: file_exists('lib/config.php') or die('Failed to load lib/config.php. Did you remember to create a config file based on config.php.example?'); @@ -31,8 +32,7 @@ class CustomAJAXChatInstaller extends CustomAJAXChatInterface { $lines = file(AJAX_CHAT_PATH.'chat.sql'); // Stop if an error occurs: if(!$lines) { - echo 'Failed to load queries from file (chat.sql).'; - die(); + die('Failed to load queries from file (chat.sql).'); } foreach($lines as $line) { if(empty($line)) { |