mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +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);
|
var resolvedIncludedWikiPath = path.resolve(wikiPath,includedWikiPath);
|
||||||
if(parentPaths.indexOf(resolvedIncludedWikiPath) === -1) {
|
if(parentPaths.indexOf(resolvedIncludedWikiPath) === -1) {
|
||||||
$tw.loadWikiTiddlers(resolvedIncludedWikiPath,parentPaths);
|
$tw.loadWikiTiddlers(resolvedIncludedWikiPath,parentPaths);
|
||||||
|
} else {
|
||||||
|
console.log("Cannot recursively include wiki",resolvedIncludedWikiPath);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user