Include collection name in "Cannot move collection into one of its own descendents" message to help with manual fixing

This commit is contained in:
Dan Stillman 2010-09-09 01:58:37 +00:00
parent 72ffd78143
commit 56a31cbd72

View file

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