More debugging

This commit is contained in:
Jeremy Ruston 2024-04-16 12:41:50 +01:00
parent 2e4980bb97
commit 516a17a6f0
1 changed files with 2 additions and 2 deletions

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}`;
throw `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}`;
throw `Error creating bag ${options.bagName} for edition ${options.wikiPath}: ${JSON.stringify(result)}`;
}
// Add plugins to the recipe list
const recipeList = [];