Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 827

Show
Ignore:
Timestamp:
11/17/05 13:31:48
Author:
fumanchu
Message:

Exceptions in page handlers now add the page_handler callable to the Exception's args.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cphttptools.py

    r826 r827  
    224224                # Remove "root" from object_path and join it to get objectPath 
    225225                self.objectPath = '/' + '/'.join(object_path[1:]) 
    226                 body = page_handler(*virtual_path, **self.paramMap) 
     226                try: 
     227                    body = page_handler(*virtual_path, **self.paramMap) 
     228                except Exception, x: 
     229                    x.args = (page_handler,) + x.args 
     230                    raise 
    227231                cherrypy.response.body = iterable(body) 
    228232                return 

Hosted by WebFaction

Log in as guest/cpguest to create tickets