debugging
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / items.xul
index b3099fc..7d66ba5 100644 (file)
@@ -39,7 +39,7 @@
                                JSAN.errorLevel = "die"; // none, warn, or die
                                JSAN.addRepository('/xul/server/');
                                JSAN.use('util.error'); g.error = new util.error();
                                JSAN.errorLevel = "die"; // none, warn, or die
                                JSAN.addRepository('/xul/server/');
                                JSAN.use('util.error'); g.error = new util.error();
-                               g.error.sdump('D_TRACE','my_init() for items.xul');
+                               try { g.error.sdump('D_TRACE','my_init() for items.xul'); } catch(E) { dump(E); }
 
                                g.cgi = new CGI();
 
 
                                g.cgi = new CGI();
 
@@ -62,7 +62,7 @@
                        }
                }
 
                        }
                }
 
-               function default_focus() { try { var x = document.getElementById('noncat'); x.focus(); } catch(E) { g.error.sdump('D_ERROR','item.xul, default_focus: ' + E); } }
+               function default_focus() { try { var x = document.getElementById('noncat'); x.focus(); } catch(E) { try { g.error.sdump('D_ERROR','item.xul, default_focus: ' + E); } catch(F) { dump(E); } } }
 
        ]]>
        </script>
 
        ]]>
        </script>