Skip to content
Extraits de code Groupes Projets
Valider a265e319 rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

Throw on login failure for bot user

parent ceb8094a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -33,6 +33,7 @@ export class DiscordClientFactory { ...@@ -33,6 +33,7 @@ export class DiscordClientFactory {
.timeout(READY_TIMEOUT, "Bot timed out waiting for ready.") .timeout(READY_TIMEOUT, "Bot timed out waiting for ready.")
.catch((err) => { .catch((err) => {
log.error("ClientFactory", "Could not login as the bot user. This is bad!", err); log.error("ClientFactory", "Could not login as the bot user. This is bad!", err);
throw err;
}); });
} }
...@@ -50,7 +51,7 @@ export class DiscordClientFactory { ...@@ -50,7 +51,7 @@ export class DiscordClientFactory {
resolve(id); resolve(id);
}); });
}).timeout(READY_TIMEOUT).catch((err: Error) => { }).timeout(READY_TIMEOUT).catch((err: Error) => {
log.warn("ClientFactory", "Could not login as the bot user '%s'", err.message); log.warn("ClientFactory", "Could not login as a normal user. '%s'", err.message);
throw Error("Could not retrive ID"); throw Error("Could not retrive ID");
}); });
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter