On Monday, September 12, 2011 1:23:47 PM UTC-4, Cliff wrote:
>
> >> If the db update failed in the regular controller I would assume that 
> >> a ticket page would appear. But what if the db update is in a callback 
> >> function? 
>
>
> >In that case, an error ticket will still be logged, and web2py will return 
>
> >the usual 500 error with the link to the ticket. 
>
> Anthony, I don't think that always happens. 
>
> Some failures in an ajax callback will log a ticket but not flash 500 
> error with the link to the ticket.
>

Sorry if I wasn't clear. I wasn't saying that the browser will display the 
500 error with link to the ticket, just that web2py will send the 500 
response back to the browser -- if it was an Ajax request, the browser might 
simply ignore the response, unless there is some JS to handle it. If it's a 
web2py Ajax component, then the error will be displayed in the component 
div, but if it's some other Ajax call, the browser may not display anything. 
I don't think web2py will generate an error ticket without sending out a 500 
response, though.

Anthony

Reply via email to