From 4ab0d4475938d129f23eb9510f8fd3ed77adb111 Mon Sep 17 00:00:00 2001 From: Archeb Date: Thu, 16 May 2024 13:15:11 +0800 Subject: [PATCH] add err detail --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d2765a9..62a7e77 100644 --- a/index.js +++ b/index.js @@ -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); }