Skip to content

Commit 5a18553

Browse files
committed
Improved the exception page when there is no message
1 parent f89047d commit 5a18553

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/TwigBundle/Resources/views/Exception/exception.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
</h2>
1414
</div>
1515
</div>
16+
{% if exception.message is not empty %}
1617
<div class="container">
1718
<div class="exception-message-wrapper">
1819
<h1 class="break-long-words exception-message {{ exception.message|length > 180 ? 'long' }}">
@@ -24,6 +25,7 @@
2425
</div>
2526
</div>
2627
</div>
28+
{% endif %}
2729
</div>
2830

2931
<div class="container">

0 commit comments

Comments
 (0)