diff --git a/public/index.php b/public/index.php index 9f89c837..d0c5f882 100644 --- a/public/index.php +++ b/public/index.php @@ -47,6 +47,11 @@ // -------------------------------------------------------------- error_reporting((System\Config::get('error.detail')) ? E_ALL | E_STRICT : 0); +// -------------------------------------------------------------- +// Ensure Error class loads before any errors fire. +// -------------------------------------------------------------- +class_exists('System\Error'); + // -------------------------------------------------------------- // Register the error handlers. // --------------------------------------------------------------