Properly log Lavalink connection errors, fix large file fallback message, actions changes

This commit is contained in:
Essem 2022-10-02 13:28:43 -05:00
parent b9f1ccc39e
commit cfb5cb506f
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
4 changed files with 10 additions and 18 deletions

View file

@ -22,8 +22,8 @@ export async function checkStatus() {
try {
const response = await request(`http://${node.url}/version`, { headers: { authorization: node.auth } }).then(res => res.body.text());
if (response) newNodes.push(node);
} catch {
logger.error(`Failed to get status of Lavalink node ${node.url}.`);
} catch (e) {
logger.error(`Failed to get status of Lavalink node ${node.url}: ${e}`);
}
}
nodes = newNodes;