diff build/messages/templates/error.html @ 229:a951cd4ef361

serve: Print nested exception messages in the dev server.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 11 Feb 2015 08:27:52 -0800
parents 67a1c082d89d
children
line wrap: on
line diff
--- a/build/messages/templates/error.html	Wed Feb 11 08:21:40 2015 -0800
+++ b/build/messages/templates/error.html	Wed Feb 11 08:27:52 2015 -0800
@@ -3,10 +3,18 @@
 {% block content %}
 {{content|safe}}
 
+{# The following is `raw` because we want it to be in the
+   produced page, so it can then be templated on the fly 
+   with the error messages #}
 {% raw %}
 {% if details %}
 <div class="error-details">
-    {{ details|safe }}
+    <p>Error details:</p>
+    <ul>
+    {% for desc in details %}
+        <li>{{ desc }}</li>
+    {% endfor %}
+    </ul>
 </div>
 {% endif %}
 {% endraw %}