File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11#
22# This module was written by Ka-Ping Yee, <[email protected] >. 33#
4- # $Id: cgitb.py,v 1.2 2002-09-06 07:21:31 richard Exp $
4+ # $Id: cgitb.py,v 1.3 2002-09-06 07:23:29 richard Exp $
55
66__doc__ = """
77Extended CGI traceback handler by Ka-Ping Yee, <[email protected] >. @@ -47,7 +47,7 @@ def pt_html(context=5):
4747 l .append ('in template %r' % context .id )
4848 elif len (ts ) == 3 :
4949 supp , context , info = ts
50- l .append ('in expression %r\n %s\n %s\n ' % (info ,
50+ l .append ('in expression %r\n current variables: \n %s\n %s\n ' % (info ,
5151 niceDict (' ' , context .global_vars ),
5252 niceDict (' ' , context .local_vars )))
5353 # context._scope_stack))
@@ -163,6 +163,9 @@ def handler():
163163
164164#
165165# $Log: not supported by cvs2svn $
166+ # Revision 1.2 2002/09/06 07:21:31 richard
167+ # much nicer error messages when there's a templating error
168+ #
166169# Revision 1.1 2002/08/30 08:28:44 richard
167170# New CGI interface support
168171#
You can’t perform that action at this time.
0 commit comments