From 34d25e6b64f36b61692ec081744de1818efef4b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 24 Feb 2021 01:38:08 +0100 Subject: [PATCH 1/1] Update error display --- Resources/views/error.html.twig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Resources/views/error.html.twig b/Resources/views/error.html.twig index 8dd4a69..ed95220 100644 --- a/Resources/views/error.html.twig +++ b/Resources/views/error.html.twig @@ -1,8 +1,9 @@ {% extends '@RapsysAir/body.html.twig' %} {% block content %} -
+

{{ section }}

-

{% if message %}{{ message }}{% else %}{% trans %}Error{% endtrans %}{% endif %}

- {% if app.environment == 'dev' and trace is defined %}
{{ trace }}
{% endif %} +

{% if message %}{{ message }}{% else %}{% trans %}Error{% endtrans %}{% endif %}

+ {# {% if app.environment == 'dev' and trace is defined %}
{{ trace }}
{% endif %} #} + {% if trace is defined and trace %}
{{ trace }}
{% endif %}
{% endblock %} -- 2.41.1