core/themes/engines/twig/twig.engine | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/themes/engines/twig/twig.engine b/core/themes/engines/twig/twig.engine index 38f3d5f..9f8bc4a 100644 --- a/core/themes/engines/twig/twig.engine +++ b/core/themes/engines/twig/twig.engine @@ -62,17 +62,6 @@ function twig_render_template($template_file, array $variables) { catch (\Twig_Error_Loader $e) { drupal_set_message($e->getMessage(), 'error'); } - catch (\Twig_Error_Runtime $e) { - // In case there is a previous exception, we just display the message and - // show the original Exception so that the original function that fails is - // shown. - $previous_exception = $e->getPrevious(); - if ($previous_exception) { - drupal_set_message($e->getMessage(), 'error'); - throw $previous_exception; - } - throw $e; - } if ($twig_service->isDebug()) { $output['debug_prefix'] .= "\n\n"; $output['debug_prefix'] .= "\n";