On Fri, Jan 7, 2011 at 11:56 AM, Mike Orr <[email protected]> wrote:
> If an exception occurs at too low a low level for the middleware to
> catch it, you simply get "Internal Server Error" in teletype text in
> the browser, and a traceback in the console. I assume PasteHTTPServer
> does that itself.

Actually,. there are two different kinds of these. Normally if you
raise HTTPException (as abort() does) and you've disabled
StatusCodeRedirect, you get a simple black-and-white HTML error
similar to Apache's.  But some low-level exceptions cause "Internal
Server Error" in teletype text. I'm not sure where the catchers for
those two are, but they're probably in PasteHTTPServer or somewhere
around there.

I wish Pylons had one consistent way to report errors, but apparently
that's impossible with a hetrerogeneous WSGI stack, where one handler
can't catch all the exceptions that may occur in the different layers.

-- 
Mike Orr <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to