1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Fixup for errors

This commit is contained in:
samherrington
2018-09-29 15:57:02 -05:00
parent 1246a677d1
commit dd913279d7
2 changed files with 3 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ function resolveStorageNotes (storage) {
notePathList = sander.readdirSync(notesDirPath)
} catch (err) {
if (err.code === 'ENOENT') {
console.error(notesDirPath, ' doesn\'t exist.')
sander.mkdirSync(notesDirPath)
} else {
console.warn('Failed to find note dir', notesDirPath, err)