From 56a31cbd725238dd83da52c3da38225d4516380a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 9 Sep 2010 01:58:37 +0000 Subject: [PATCH] Include collection name in "Cannot move collection into one of its own descendents" message to help with manual fixing --- chrome/content/zotero/xpcom/data/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/collection.js b/chrome/content/zotero/xpcom/data/collection.js index 36361f7726..e213935438 100644 --- a/chrome/content/zotero/xpcom/data/collection.js +++ b/chrome/content/zotero/xpcom/data/collection.js @@ -404,7 +404,7 @@ Zotero.Collection.prototype.save = function () { } if (this.id && this.hasDescendent('collection', newParent.id)) { - throw ('Cannot move collection into one of its own descendents!'); + throw ('Cannot move collection "' + this.name + '" into one of its own descendents'); } var parent = newParent.id;