server: print config file read error
This commit is contained in:
parent
e4db027085
commit
4ef3595125
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue