add err detail

This commit is contained in:
Archeb
2024-05-16 13:15:11 +08:00
parent ea8bdc8541
commit 4ab0d44759
+2 -1
View File
@@ -13,7 +13,8 @@ const validApiKey = process.env.PASSWORD;
try {
var config = require("./config.js");
} 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);
}