Include collection name in "Cannot move collection into one of its own descendents" message to help with manual fixing
This commit is contained in:
parent
72ffd78143
commit
56a31cbd72
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue