From c4b1796ecb17d914735c0471ce0ada5b052f31ee Mon Sep 17 00:00:00 2001 From: Emma Litwa-Vulcu <80431903+reiniiriarios@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:18:35 -0700 Subject: [PATCH] chore: add log for no books dir --- electron/data/bookData.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/electron/data/bookData.ts b/electron/data/bookData.ts index 0469cf9..54d9b58 100644 --- a/electron/data/bookData.ts +++ b/electron/data/bookData.ts @@ -18,6 +18,7 @@ import { searchOpenLibraryWorkByISBN } from "../api/openLibrary"; */ export function initBookDirs(dir: string) { if (!fs.existsSync(dir)) { + log.warn(`Books directory missing, creating '${dir}'`); fs.mkdirSync(dir, { recursive: true }); } }