Fix promise loop
This commit is contained in:
2
index.js
2
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.` });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user