diff --git a/chrome/content/zotero/xpcom/data/itemFields.js b/chrome/content/zotero/xpcom/data/itemFields.js index c589560982..6c9681e03c 100644 --- a/chrome/content/zotero/xpcom/data/itemFields.js +++ b/chrome/content/zotero/xpcom/data/itemFields.js @@ -198,7 +198,9 @@ Zotero.ItemFields = new function() { */ function getItemTypeFields(itemTypeID) { if (!itemTypeID) { - throw new Error("Invalid item type id '" + itemTypeID + "'"); + let e = new Error("Invalid item type id '" + itemTypeID + "'"); + e.name = "ZoteroUnknownTypeError"; + throw e; } if (!_itemTypeFieldsLoaded) {