Better error message for a sync error (not yet fixed)

This commit is contained in:
Dan Stillman 2009-05-31 20:19:49 +00:00
parent 017713716e
commit 99ffa76e6f

View file

@ -3144,6 +3144,10 @@ Zotero.Sync.Server.Data = new function() {
var childItemIDs = [];
for each(var key in childItems) {
var childItem = Zotero.Items.getByLibraryAndKey(collection.libraryID, key);
if (!childItem) {
throw ("Missing child item " + key + " for collection " + collection.libraryID + "/" + collection.key
+ " in Zotero.Sync.Server.Data.xmlToCollection()");
}
childItemIDs.push(childItem.id);
}
collection.childItems = childItemIDs;