From 516a17a6f0fd467a77c9f2e75e46ae2661a60f2d Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 16 Apr 2024 12:41:50 +0100 Subject: [PATCH] More debugging --- plugins/tiddlywiki/multiwikiserver/modules/startup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tiddlywiki/multiwikiserver/modules/startup.js b/plugins/tiddlywiki/multiwikiserver/modules/startup.js index ea99790c8..50ce4b9e6 100644 --- a/plugins/tiddlywiki/multiwikiserver/modules/startup.js +++ b/plugins/tiddlywiki/multiwikiserver/modules/startup.js @@ -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 = [];