Add some debugging for a sync problem

This commit is contained in:
Dan Stillman 2009-12-02 23:57:55 +00:00
parent 0fe5389858
commit b42b310d67

View file

@ -3314,6 +3314,9 @@ Zotero.Sync.Server.Data = new function() {
var libraryID = item.creators[index].libraryID ? item.creators[index].libraryID : Zotero.libraryID;
var key = item.creators[index].key;
if (!key) {
Zotero.debug('==========');
Zotero.debug(index);
Zotero.debug(item);
throw ("Creator key not set for item in Zotero.Sync.Server.sync()");
}
newCreator.@libraryID = libraryID;