From a5aac31f655f0372f64bc459bf979813a41b0295 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Thu, 29 Oct 2009 01:36:39 -0400 Subject: [PATCH] cut a leftover comment, fix a bit of spacing svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2704 --- code/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/main.py b/code/main.py index de0a739..a2ab887 100755 --- a/code/main.py +++ b/code/main.py @@ -67,14 +67,13 @@ class InvirtWeb(View): @cherrypy.expose @cherrypy.tools.mako(filename="/error.mako") def error(self): - #op, username, fields, err, emsg, traceback): """Print an error page when an exception occurs""" op = cherrypy.request.prev.path_info username = cherrypy.request.login err = cherrypy.request.prev.params["err"] emsg = cherrypy.request.prev.params["emsg"] traceback = cherrypy.request.prev.params["traceback"] - d = dict(op = op, user=username, fields=cherrypy.request.prev.params, + d = dict(op=op, user=username, fields=cherrypy.request.prev.params, errorMessage=str(err), stderr=emsg, traceback=traceback) error_raw = cherrypy.request.lookup.get_template("/error_raw.mako") details = error_raw.render(**d) -- 1.7.9.5