- Add triggers for full sync on various errors
- Add Zotero.Error(message, error) constructor to create a throwable error object with an error code - Allow only one automatic client reset between manual syncs - Fix "Source item for keyed source doesn't exist in Zotero.Item.getSource()" error - Object produced by item.serialize() now contains .sourceItemKey instead of .sourceItemID - Better error logging for missing XPCOM files
This commit is contained in:
parent
46209bd4f3
commit
41437738b0
5 changed files with 110 additions and 44 deletions
|
@ -42,6 +42,7 @@ var xpcomFiles = [
|
|||
'db',
|
||||
'duplicate',
|
||||
'enstyle',
|
||||
'error',
|
||||
'file',
|
||||
'fulltext',
|
||||
'id',
|
||||
|
@ -68,9 +69,15 @@ var xpcomFiles = [
|
|||
];
|
||||
|
||||
for (var i=0; i<xpcomFiles.length; i++) {
|
||||
Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Ci.mozIJSSubScriptLoader)
|
||||
.loadSubScript("chrome://zotero/content/xpcom/" + xpcomFiles[i] + ".js");
|
||||
try {
|
||||
Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Ci.mozIJSSubScriptLoader)
|
||||
.loadSubScript("chrome://zotero/content/xpcom/" + xpcomFiles[i] + ".js");
|
||||
}
|
||||
catch (e) {
|
||||
Components.utils.reportError("Error loading " + xpcomFiles[i] + ".js");
|
||||
throw (e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue