1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 01:26:18 +00:00

Debugging

This commit is contained in:
Jeremy Ruston 2024-04-16 12:43:41 +01:00
parent 516a17a6f0
commit 471ba99a5d

View File

@ -58,7 +58,7 @@ function loadStore(store) {
const bagName = makePluginBagName(type,publisher,name);
const result = store.createBag(bagName,pluginFields.description || "(no description)",{allowPrivilegedCharacters: true});
if(result !== null) {
throw `Error creating plugin bag ${bagname}: ${JSON.stringify(result)}`;
console.log(`Error creating plugin bag ${bagname}: ${JSON.stringify(result)}`);
}
store.saveBagTiddler(pluginFields,bagName);
},
@ -104,7 +104,7 @@ function loadStore(store) {
// Create the bag
const result = store.createBag(options.bagName,options.bagDescription);
if(!result) {
throw `Error creating bag ${options.bagName} for edition ${options.wikiPath}: ${JSON.stringify(result)}`;
console.log(`Error creating bag ${options.bagName} for edition ${options.wikiPath}: ${JSON.stringify(result)}`);
}
// Add plugins to the recipe list
const recipeList = [];