Properly log Lavalink connection errors, fix large file fallback message, actions changes
This commit is contained in:
parent
b9f1ccc39e
commit
cfb5cb506f
4 changed files with 10 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue