add err detail
This commit is contained in:
@@ -13,7 +13,8 @@ const validApiKey = process.env.PASSWORD;
|
|||||||
try {
|
try {
|
||||||
var config = require("./config.js");
|
var config = require("./config.js");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Missing config.js, create it from config.example.js and fill in the values.");
|
console.error(e);
|
||||||
|
console.error("config.js missing or corrupted, create it from config.example.js and fill in the values.");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user