Enabled error reporting before any files are loaded. This allows parse errors and such to be caught and displayed instead of getting a white screen.

This commit is contained in:
Josh Sherman 2011-03-31 23:05:40 -04:00
parent 43aff106a0
commit bf60869274

View file

@ -53,10 +53,9 @@ define('JSON_AVAILABLE', function_exists('json_encode'));
// }}}
// {{{ Defaults some important configuration options
// Error reporting is not modified initially
// Feel free to uncomment these lines if you want error reporting on before the config is loaded
// ini_set('display_errors', true);
// error_reporting(-1);
// Turns on error before the config is loaded to help catch parse errors
ini_set('display_errors', true);
error_reporting(-1);
// Sets the error and exception handlers
set_error_handler('__handleError');