Might reconsider this, since the exact line in twig is lost

This commit is contained in:
Samuel Georges 2015-06-04 17:37:29 +10:00
parent 39291967d6
commit b81efa9c46
1 changed files with 12 additions and 12 deletions

View File

@ -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,