add logging to start error

This commit is contained in:
Christopher Cookman 2024-05-07 21:48:22 -06:00
parent 5ea2ad9701
commit c1af1a7839
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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();