From 8a3d2a671c7ca1e3a7412f31fd4f3c2495f8d011 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 26 Jun 2023 11:23:29 +0200 Subject: [PATCH] Fix promise loop --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6d8ddef..e948e64 100644 --- a/index.js +++ b/index.js @@ -202,7 +202,7 @@ async function startBot(accountName) { } else { consoleLog(`[${host}] File ${accountPath} does not exist, skipping starting bot for this VPN!`, 'error'); - return Promise.reject(`File ${accountPath} does not exist.`); + return Promise.resolve({ error: `File ${accountPath} does not exist.` }); } }