mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-19 13:20:59 +00:00
Better error display for "npm run" and config.json
This commit is contained in:
6
app.js
6
app.js
@@ -34,8 +34,10 @@ try {
|
||||
config = JSON.parse(fs.readFileSync(configPath));
|
||||
}
|
||||
catch (err) {
|
||||
console.log("There was a problem reading your config.json file:\n\n" + err.stack);
|
||||
process.exit(0);
|
||||
console.log("There was a problem reading your config.json file.");
|
||||
console.log("Please try pasting your config.json file here to validate it: http://jsonlint.com");
|
||||
console.log("");
|
||||
throw err;
|
||||
}
|
||||
|
||||
// pull out our custom Bridge settings from config.json, if any
|
||||
|
||||
Reference in New Issue
Block a user