8000 [WebProfilerBundle] fixed exception panel when no exception is thrown · waibo/symfony@1c92307 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c92307

Browse files
committed
[WebProfilerBundle] fixed exception panel when no exception is thrown
1 parent 00e08be commit 1c92307

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/exception.html.twig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
22

33
{% block head %}
4-
<style type="text/css">
5-
{{ render(path('_profiler_exception_css', { 'token': token })) }}
6-
</style>
4+
{% if collector.hasexception %}
5+
<style type="text/css">
6+
{{ render(path('_profiler_exception_css', { 'token': token })) }}
7+
</style>
8+
{% endif %}
79
{{ parent() }}
810
{% endblock %}
911

0 commit comments

Comments
 (0)
0