Skip to content

Commit 9a276aa

Browse files
committed
bug symfony#23231 Improved the exception page when there is no message (javiereguiluz)
This PR was merged into the 3.3 branch. Discussion ---------- Improved the exception page when there is no message | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#23135 | License | MIT | Doc PR | - Commits ------- 5a18553 Improved the exception page when there is no message
2 parents f89047d + 5a18553 commit 9a276aa

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)