Skip to content

Commit

Permalink
server: print config file read error
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-emmanuel committed Nov 23, 2023
1 parent e4db027 commit 4ef3595
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ef3595

Please sign in to comment.