From 4858fbe7e0f991dd3e8f0a3846eb0634b76fdd07 Mon Sep 17 00:00:00 2001 From: Danny Berger Date: Fri, 11 Nov 2011 18:20:32 -0600 Subject: [PATCH] [TwigBundle] Fix trace to not show 'in at line' when file/line are empty. --- .../TwigBundle/Resources/views/Exception/trace.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/trace.html.twig b/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/trace.html.twig index 397d68142a..cc2e0ddf22 100644 --- a/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/trace.html.twig +++ b/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/trace.html.twig @@ -5,10 +5,10 @@ {{ trace.type ~ trace.function }} ({{ trace.args|format_args }}) -
{% endif %} -{% if trace.file is defined and trace.line is defined %} +{% if trace.file is defined and trace.file and trace.line is defined and trace.line %} + {{ trace.function ? '
' : '' }} in {{ trace.file|format_file(trace.line) }}  {% spaceless %}