소스 검색

Add prod error pages @todo

jmontoyaa 8 년 전
부모
커밋
914b59cfb5
2개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      app/Resources/TwigBundle/views/Exception/error.html.twig
  2. 7 0
      app/Resources/TwigBundle/views/Exception/error404.html.twig

+ 11 - 0
app/Resources/TwigBundle/views/Exception/error.html.twig

@@ -0,0 +1,11 @@
+{# global error #}
+Error message:
+
+Please edit
+<pre>
+app/Resources/TwigBundle/views/Exception/error.html.twig
+</pre>
+
+Status code: {{ status_code }} <br />
+Status text {{ status_text }} <br />
+Exception message: {{  exception.message }} <br />

+ 7 - 0
app/Resources/TwigBundle/views/Exception/error404.html.twig

@@ -0,0 +1,7 @@
+{# 404 error #}
+<h2>Not found</h2>
+
+Please edit
+<pre>
+app/Resources/TwigBundle/views/Exception/error404.html.twig
+</pre>