server: print config file read error

This commit is contained in:
jean-emmanuel 2023-11-23 09:42:32 +01:00
parent e4db027085
commit 4ef3595125

View file

@ -115,7 +115,10 @@ if (configPathExists) {
}
try {
config = JSON.parse(fs.readFileSync(configPath,'utf-8'))
} catch(e) {}
} catch(e) {
console.error('(ERROR) Could not read config from file:' + configPath)
console.error(e)
}
if (cli) {
for (let k in config) {
if (k === 'options') continue