Update error logging in index.js
This commit is contained in:
parent
e469f8d8a0
commit
387379269a
2
index.js
2
index.js
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue