diff --git a/modules/system/classes/ErrorHandler.php b/modules/system/classes/ErrorHandler.php index d163cb418..c8e7e907b 100644 --- a/modules/system/classes/ErrorHandler.php +++ b/modules/system/classes/ErrorHandler.php @@ -23,19 +23,19 @@ class ErrorHandler extends ErrorHandlerBase /** * {@inheritDoc} */ - public function handleException(Exception $proposedException) - { - // The Twig runtime error is not very useful - if ( - $proposedException instanceof Twig_Error_Runtime && - ($previousException = $proposedException->getPrevious()) && - (!$previousException instanceof CmsException) - ) { - $proposedException = $previousException; - } + // public function handleException(Exception $proposedException) + // { + // // The Twig runtime error is not very useful + // if ( + // $proposedException instanceof Twig_Error_Runtime && + // ($previousException = $proposedException->getPrevious()) && + // (!$previousException instanceof CmsException) + // ) { + // $proposedException = $previousException; + // } - return parent::handleException($proposedException); - } + // return parent::handleException($proposedException); + // } /** * We are about to display an error page to the user,