mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 12:23: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.verbose(stats);
|
||||
client.log.debug(res);
|
||||
} catch (error) {
|
||||
client.log.error('An error occurred whilst posting stats', stats, error);
|
||||
} catch (res) {
|
||||
client.log.error('An error occurred whilst posting stats', (await res.json())?.error);
|
||||
client.log.debug(res);
|
||||
}
|
||||
};
|
||||
send();
|
||||
|
Loading…
Reference in New Issue
Block a user