1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-03 07:18:06 +00:00

Provide an option for the load command to not error if no tiddlers are found

This commit is contained in:
Jermolene
2019-03-08 16:43:04 +00:00
parent 07635d7b3e
commit 12630d4a91
2 changed files with 5 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ Command.prototype.execute = function() {
count++;
});
});
if(!count) {
if(!count && self.params[1] !== "noerror") {
self.callback("No tiddlers found in file \"" + self.params[0] + "\"");
} else {
self.callback(null);