Fix promise loop

This commit is contained in:
2023-06-26 11:23:29 +02:00
parent c058bf3414
commit 8a3d2a671c

View File

@@ -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.` });
}
}