mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
improve error handling
This commit is contained in:
parent
e813dee884
commit
35ad490ba6
@ -100,8 +100,9 @@ module.exports = class extends Listener {
|
|||||||
client.log.success('Posted client stats');
|
client.log.success('Posted client stats');
|
||||||
client.log.verbose(stats);
|
client.log.verbose(stats);
|
||||||
client.log.debug(res);
|
client.log.debug(res);
|
||||||
} catch (error) {
|
} catch (res) {
|
||||||
client.log.error('An error occurred whilst posting stats', stats, error);
|
client.log.error('An error occurred whilst posting stats', (await res.json())?.error);
|
||||||
|
client.log.debug(res);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
send();
|
send();
|
||||||
|
Loading…
Reference in New Issue
Block a user