mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-23 03:43:48 +01:00
- Add additional debug info. RootTree seems to be out of sync.
This commit is contained in:
parent
b847782079
commit
25ac0bbadd
@ -80,7 +80,7 @@ mindplot.IconGroup = new Class({
|
||||
}, this);
|
||||
|
||||
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;
|
||||
|
@ -246,7 +246,12 @@ mindplot.CommandContext = new Class({
|
||||
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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user