From ea5889f7a621bbcd752557153e4145ae61402395 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Tue, 6 May 2025 21:00:39 +1200 Subject: [PATCH] #68 Log JSON parsing errors --- app/src/functions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/functions.ts b/app/src/functions.ts index 437364f..20c660a 100644 --- a/app/src/functions.ts +++ b/app/src/functions.ts @@ -6,7 +6,9 @@ let config = {} try { const configJson = require(process.env.IPP_CONFIG || '../config.json') if (typeof configJson === 'object') config = configJson -} catch (e) { } +} catch (e) { + console.log(e) +} /** * Get a configuration option fron config.json using dotted notation.