remove throw and replace with warning

This commit is contained in:
Triston Armstrong 2023-12-25 19:50:08 -06:00
parent 74e960f14e
commit 31c5635f8a

View File

@ -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
}
}