From 31c5635f8aa4a91247ebc5276eddb1ff0bccc9b9 Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Mon, 25 Dec 2023 19:50:08 -0600 Subject: [PATCH] remove throw and replace with warning --- lib/node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node.js b/lib/node.js index f8ccc79..676d645 100644 --- a/lib/node.js +++ b/lib/node.js @@ -37,7 +37,9 @@ export const Node = { getMarkdownFolder: function() { const notesDir = path.join(process.cwd(), 'notes') - if (!Node.isFile(notesDir)) throw new Error("The notes directory has not been created yet") + if (!Node.isFile(notesDir)) { + console.warn("Notes Directory does not seem to exist: ", notesDir) + } return notesDir } }