﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1458	make the template error page useful for command line clients	Ian@…	Adrian Holovaty	"when using curl, or a command line client (say a automated update bot) the error message is hard to understand (or even see)
my solution was to do the following
{{{
Index: debug.py
===================================================================
--- debug.py    (revision 2461)
+++ debug.py    (working copy)
@@ -181,6 +181,17 @@
 TECHNICAL_500_TEMPLATE = """"""
 <!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.01 Transitional//EN"" ""http://www.w3.org/TR/html4/loose.dtd"">
 <html lang=""en"">
+<!--
+Traceback (most recent call last):
+{% for frame in frames %}
+  File ""{{ frame.filename }}"" in {{ frame.function }}
+  {% if frame.context_line %}
+    {{ frame.lineno|add:""1"" }}. {{ frame.context_line|escape }}
+  {% endif %}
+{% endfor %}
+{{ exception_type }} at {{ request.path }}
+{{ exception_value|escape }}
+-->
 <head>
   <meta http-equiv=""content-type"" content=""text/html; charset=utf-8"" />
   <meta name=""robots"" content=""NONE,NOARCHIVE"" />
@@ -531,7 +542,17 @@
     display a standard 500 page.
   </p>
 </div>
-
+<!--
+Traceback (most recent call last):
+{% for frame in frames %}
+  File ""{{ frame.filename }}"" in {{ frame.function }}
+  {% if frame.context_line %}
+    {{ frame.lineno|add:""1"" }}. {{ frame.context_line|escape }}
+  {% endif %}
+{% endfor %}
+{{ exception_type }} at {{ request.path }}
+{{ exception_value|escape }}
+-->
 </body>
 </html>
 """"""
}}}
which puts the traceback at the start and end of the HTML page as a comment so that the developer can just see it quickly."	Cleanup/optimization	closed	Core (Other)		normal	wontfix		Daniel Hahler	Unreviewed	0	0	0	0	1	1
