From 471ba99a5d7c65b16f78e77f4ccf84556f85ea24 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 16 Apr 2024 12:43:41 +0100 Subject: [PATCH] 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 50ce4b9e6..1ac4752aa 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}: ${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 = [];