More helpful error message pulling sync data with an unknown item type
This commit is contained in:
parent
fd78461fc6
commit
7816ef83c9
|
@ -3474,6 +3474,12 @@ Zotero.Sync.Server.Data = new function() {
|
|||
data.dateModified = xmlItem.@dateModified.toString();
|
||||
}
|
||||
data.itemTypeID = Zotero.ItemTypes.getID(xmlItem.@itemType.toString());
|
||||
// TEMP - NSF
|
||||
if (!data.itemTypeID) {
|
||||
var msg = "Invalid item type '" + xmlItem.@itemType.toString() + "' in Zotero.Sync.Server.Data.xmlToItem()";
|
||||
var e = new Zotero.Error(msg, "INVALID_ITEM_TYPE");
|
||||
throw (e);
|
||||
}
|
||||
|
||||
var changedFields = {};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user