From c1af1a7839aa73435ef8ec9ac7c68bb6242f87df Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 7 May 2024 21:48:22 -0600 Subject: [PATCH] add logging to start error --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 507456d..c68d724 100644 --- a/index.js +++ b/index.js @@ -126,8 +126,8 @@ xmpp.on("online", async (address) => { }); const start = () => { - xmpp.start().catch(() => { - console.error("start failed, trying again in a few seconds"); + xmpp.start().catch((err) => { + console.error(`start failed, ${err}\nGonna try again in 5 seconds...`); xmpp.stop(); setTimeout(() => { start();