Fix quotes in invalid-field error messages

This commit is contained in:
Dan Stillman 2021-02-24 22:53:20 -05:00
parent 1e8f2b94d4
commit 557a75c90f

View file

@ -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;
}