remove throw and replace with warning
This commit is contained in:
parent
74e960f14e
commit
31c5635f8a
@ -37,7 +37,9 @@ export const Node = {
|
|||||||
|
|
||||||
getMarkdownFolder: function() {
|
getMarkdownFolder: function() {
|
||||||
const notesDir = path.join(process.cwd(), 'notes')
|
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
|
return notesDir
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user