From 557a75c90f9b193d36099d2fd387e8d6b5a0ac64 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 24 Feb 2021 22:53:20 -0500 Subject: [PATCH] Fix quotes in invalid-field error messages --- chrome/content/zotero/xpcom/data/itemFields.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/itemFields.js b/chrome/content/zotero/xpcom/data/itemFields.js index 92104da40b..0013f336cb 100644 --- a/chrome/content/zotero/xpcom/data/itemFields.js +++ b/chrome/content/zotero/xpcom/data/itemFields.js @@ -240,7 +240,7 @@ Zotero.ItemFields = new function() { var baseFieldID = this.getID(baseField); if (!baseFieldID) { - throw new Error("Invalid field '" + baseField + '" for base field'); + throw new Error("Invalid field '" + baseField + "' for base field"); } if (fieldID == baseFieldID) { @@ -277,7 +277,7 @@ Zotero.ItemFields = new function() { var baseFieldID = this.getID(baseField); if (!baseFieldID) { - throw new Error("Invalid field '" + baseField + '" for base field'); + throw new Error("Invalid field '" + baseField + "' for base field"); } // If field isn't a base field, return it if it's valid for the type @@ -419,7 +419,7 @@ Zotero.ItemFields = new function() { var fieldID = Zotero.ItemFields.getID(field); if (!fieldID) { Zotero.debug((new Error).stack, 1); - throw new Error(`Invalid field '${field}`); + throw new Error(`Invalid field '${field}'`); } return fieldID; }