Update error logging in index.js

This commit is contained in:
Christopher Cookman 2024-05-12 01:55:11 -06:00
parent e469f8d8a0
commit 387379269a
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -1135,7 +1135,7 @@ discord.on("guildDelete", (guild) => {
}) })
process.on("unhandledRejection", (error) => { process.on("unhandledRejection", (error) => {
console.log(`${colors.red("[ERROR]")} Unhandled Rejection: ${error.message}`); console.log(`${colors.red("[ERROR]")} Unhandled Rejection: ${error.stack}`);
if (false) { if (false) {
fetch(config.ntfy.server, { fetch(config.ntfy.server, {
method: 'POST', method: 'POST',