From a1d3b5e1848fcefbd5392867db7d57c336215108 Mon Sep 17 00:00:00 2001 From: zefie Date: Sun, 31 Oct 2021 17:32:54 -0400 Subject: [PATCH] fix bug where could not start if user_config.json did not exist --- zefie_wtvp_minisrv/WTVShared.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zefie_wtvp_minisrv/WTVShared.js b/zefie_wtvp_minisrv/WTVShared.js index d22de387..ee70ec03 100644 --- a/zefie_wtvp_minisrv/WTVShared.js +++ b/zefie_wtvp_minisrv/WTVShared.js @@ -83,7 +83,9 @@ class WTVShared { } } } catch (e) { - if (minisrv_config.config.debug_flags.debug) console.error(" * Notice: Could not find user configuration (user_config.json). Using default configuration."); + if (minisrv_config.config.debug_flags) { + if (minisrv_config.config.debug_flags.debug) console.error(" * Notice: Could not find user configuration (user_config.json). Using default configuration."); + } } }