www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 99ffa76e6ff9fdfd1a8d2c28fd0976c7ef22df56
parent 017713716e965d1ffebdaeb53c87a8119ff4d235
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 31 May 2009 20:19:49 +0000

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


Diffstat:
Mchrome/content/zotero/xpcom/sync.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -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;