Skip to content

Commit

Permalink
improve error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoakes committed Nov 7, 2016
1 parent b525abe commit beafc72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
21 changes: 0 additions & 21 deletions app/Resources/TwigBundle/views/Exception/error404.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,6 @@

<p>
La page demandée n'existe pas ou plus.
A la place, vous pouvez :
<ol>
<li>
<a href="{{ path('mgate_dashboard_homepage') }}">Retourner à l'accueil</a>
</li>
<li>
<a href="mailto:[email protected]">Aller taper la discute avec le pole DSI ([email protected])</a>
</li>
<li>
<a href="http://symfony.com/">Apprendre Symfony</a>
</li>
<li>
<a href="https://nodejs.org/">Apprendre Node.Js</a>
</li>
<li>
<a href="https://www.docker.com/">Devenir vraiment cool</a>
</li>
<li>
<a href="http://perdu.com/">Conquérir le monde</a>
</li>
</ol>
</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/Resources/TwigBundle/views/Exception/error500.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "::layout.html.twig" %}

{% block title %}Page Introuvable{% endblock %}
{% block title %}Erreur interne du serveur{% endblock %}

{% block content %}
<section class="content">
Expand All @@ -20,7 +20,7 @@
<div>
Si tu n'as pas peur du code : <br>
<code>{{ status_code }} {{ status_text }}</code>
<p>{{ exception.message[:200] }}</p>
<p>{{ exception.message }}</p>
</div>
{% endblock %}

0 comments on commit beafc72

Please sign in to comment.