mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-07 16:00:28 +00:00
Debugging
This commit is contained in:
parent
516a17a6f0
commit
471ba99a5d
@ -58,7 +58,7 @@ function loadStore(store) {
|
|||||||
const bagName = makePluginBagName(type,publisher,name);
|
const bagName = makePluginBagName(type,publisher,name);
|
||||||
const result = store.createBag(bagName,pluginFields.description || "(no description)",{allowPrivilegedCharacters: true});
|
const result = store.createBag(bagName,pluginFields.description || "(no description)",{allowPrivilegedCharacters: true});
|
||||||
if(result !== null) {
|
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);
|
store.saveBagTiddler(pluginFields,bagName);
|
||||||
},
|
},
|
||||||
@ -104,7 +104,7 @@ function loadStore(store) {
|
|||||||
// Create the bag
|
// Create the bag
|
||||||
const result = store.createBag(options.bagName,options.bagDescription);
|
const result = store.createBag(options.bagName,options.bagDescription);
|
||||||
if(!result) {
|
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
|
// Add plugins to the recipe list
|
||||||
const recipeList = [];
|
const recipeList = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user