[Cosmo-dev] JS error-handling in the UI

Matthew Eernisse mde at osafoundation.org
Mon Jul 30 20:09:36 PDT 2007


Howdy.

Looks like changes to the error-handling code for saving/removing have 
had some unfortunate side-effects.

Now normal JavaScript errors happening in the canvas repaint *after* 
saving are being swallowed, and all I get is the generic "Could not save 
the item" error in our modal dialog box.

This is problematic firstly because the items actual *is* being saved -- 
the error is simply in the canvas repaint. Of course the bigger issue is 
that now all the normal information you'd get in the JavaScript debug 
window or in Firebug is now unavailable. (Shades of JSON-RPC grabbing 
all its errors and sticking them by default in an alert box, although 
this is a bigger problem because it extends up out of the service layer 
now.)

Could we do something about this? Seems like we should be grabbing 
errors of the type we care specifically about, and passing on all the 
others to be handled the normal way, if that's possible.

Thanks.


Matthew




More information about the cosmo-dev mailing list