Hi, um , Gun

On 11/1/05, Gunfighter <[EMAIL PROTECTED]> wrote:
> So how can these be improved? Some obvious suggestions come to mind.
> One particular thought is to have the error handling page load the
> Simple Description, TraceBack, and any other pertinent information in
> JSON format. Perhaps display the true error in a simple format (e.g.
> "No such method comple in model.py on line 123") and have a "Click here
> for traceback" link that would display the full traceback information.

A nicer default error page is a good bet. If this were added in some
form to quickstart, that would give people a leg up in making a
customized version for their own projects. I added a ticket for this:
http://trac.turbogears.org/turbogears/ticket/86

> As far as the model.py error completely stopping TG, I think that would
> (obviously) be relegated to error handling code elsewhere in the MVC
> chain.

I don't worry about this particular thing much, because people do
their development on machines separate from their production servers. 
(Right?)

That said, the start script *could* do something like wrap the
majority of the startup procedure in a try/except and then, if an
exception is raised, fire up cherrypy with a root that shows nothing
other than the error page. I just don't think that's particularly
necessary. If your model.py is broken, you're site is down anyway.

Kevin

Reply via email to