fix bug where could not start if user_config.json did not exist

This commit is contained in:
zefie
2021-10-31 17:32:54 -04:00
parent df6b296456
commit a1d3b5e184

View File

@@ -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.");
}
}
}