Might reconsider this, since the exact line in twig is lost
This commit is contained in:
parent
39291967d6
commit
b81efa9c46
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue