diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js index cf988a5120..13c5813e0c 100644 --- a/chrome/content/zotero/xpcom/data/collection.js +++ b/chrome/content/zotero/xpcom/data/collection.js @@ -259,7 +259,7 @@ Zotero.Collection.prototype._initSave = Zotero.Promise.coroutine(function* (env) } if (this.id && this.hasDescendent('collection', newParent.id)) { - throw ('Cannot move collection "' + this.name + '" into one of its own descendents'); + throw new Error(`Cannot move collection '${this.name}' into one of its own descendents`); } env.parent = newParent.id;