Adds better startup error debugging (from r2976) to branch

This commit is contained in:
Dan Stillman 2008-07-06 16:52:55 +00:00
parent e5f2c8fd35
commit 67f9b225d0

View File

@ -127,7 +127,15 @@ Cc["@mozilla.org/moz/jssubscript-loader;1"]
// Calls to other XPCOM components must be in here rather than in top-level
// code, as other components may not have yet been initialized.
function setupService(){
Zotero.init();
try {
Zotero.init();
}
catch (e) {
var msg = typeof e == 'string' ? e : e.name;
dump(e + "\n\n");
Components.utils.reportError(e);
throw (e);
}
}
function ZoteroService(){