mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-03 00:41:27 +03:00
improve error handling
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user