Handle bad config.hjson at startup/re-cache: output to stderr

This commit is contained in:
Bryan Ashby
2018-07-02 19:32:27 -06:00
parent a9e2551ae5
commit f4afe9847d
2 changed files with 14 additions and 10 deletions

View File

@@ -100,6 +100,8 @@ function init(configPath, options, cb) {
Events.emit(Events.getSystemEvents().ConfigChanged);
}
});
} else {
console.stdout(`Configuration ${reCachedPath} is invalid: ${err.message}`); // eslint-disable-line no-console
}
});
};