mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"description": "HomeKit support for the impatient",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"start": "DEBUG=* node app.js"
|
||||
"start": "DEBUG=* node app.js || true"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user