From 30dfd386c6d7238d5bcad5a02c5ce4cc18f722d0 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Fri, 14 Jul 2023 21:46:43 -0600 Subject: [PATCH] fix: log errors --- backend/UserConfig.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/UserConfig.ts b/backend/UserConfig.ts index 1325b45..9d3efd9 100644 --- a/backend/UserConfig.ts +++ b/backend/UserConfig.ts @@ -22,7 +22,11 @@ const Checkers: UserConfigTypeChecker = { : fs.mkdirSync(val); return true; } - catch (err) { return false; } + catch (err) { + log.warn('Cannot access directory', `${val}`); + console.error(err); + return false; + } }, idType: (val) => { const options = ['random', 'original', 'gfycat', 'timestamp', 'zws'];