- Add additional debug info. RootTree seems to be out of sync.

This commit is contained in:
Paulo Gustavo Veiga 2012-09-24 16:43:31 -03:00
parent b847782079
commit 25ac0bbadd
2 changed files with 7 additions and 2 deletions

View File

@ -80,7 +80,7 @@ mindplot.IconGroup = new Class({
}, this); }, this);
if (result == null) { if (result == null) {
throw new Error("Icon can no be found:" + iconModel); throw new Error("Icon can no be found:" + iconModel.getId() + ", Icons:" + this._icons);
} }
return result; return result;

View File

@ -246,7 +246,12 @@ mindplot.CommandContext = new Class({
return topicsIds.contains(topic.getId()); return topicsIds.contains(topic.getId());
}); });
$assert(result.length == topicsIds.length, "Could not find topic. Result:" + result + ", Filtered:" + topicsIds + ", Current Topics: " + designerTopics); if (result.length != topicsIds.length) {
var ids = designerTopics.map(function (topic) {
return topic.getId();
});
$assert(result.length == topicsIds.length, "Could not find topic. Result:" + result + ", Filter Criteria:" + topicsIds + ", Current Topics: " + ids);
}
return result; return result;
}, },