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 {
.timeout(READY_TIMEOUT, "Bot timed out waiting for ready.")
.catch((err) => {
log.error("ClientFactory", "Could not login as the bot user. This is bad!", err);
throw err;
});
}
......@@ -50,7 +51,7 @@ export class DiscordClientFactory {
resolve(id);
});
}).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");
});
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter