mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Add error message for recursively including a wiki
This commit is contained in:
parent
631dd1cc5f
commit
829ab59a7d
@ -1018,6 +1018,8 @@ $tw.loadWikiTiddlers = function(wikiPath,parentPaths) {
|
||||
var resolvedIncludedWikiPath = path.resolve(wikiPath,includedWikiPath);
|
||||
if(parentPaths.indexOf(resolvedIncludedWikiPath) === -1) {
|
||||
$tw.loadWikiTiddlers(resolvedIncludedWikiPath,parentPaths);
|
||||
} else {
|
||||
console.log("Cannot recursively include wiki",resolvedIncludedWikiPath);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user