From c07c0ee3debeb9a91ba147fcf7b828de2f192c75 Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 10 Jun 2011 11:37:22 -0700 Subject: [PATCH] Preload error handler class --- public/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/index.php b/public/index.php index 9f89c837bb8..d0c5f88233c 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. // --------------------------------------------------------------