From dea0915d9b463eb237b428785db2f0577c3ed33e Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 11 Aug 2024 22:01:03 -0600 Subject: [PATCH] IUUUUU --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 01ba325..ba38970 100644 --- a/index.js +++ b/index.js @@ -1664,11 +1664,11 @@ dcClient.on('interactionCreate', async interaction => { // Lets actually handle exceptions now process.on('unhandledRejection', (error) => { // Log a full error with line number - sendLog(`${colors.red("[ERROR]")} ${error.stack}`); + sendLog(`${colors.red("[ERROR]")} ${JSON.stringify(error)}`); // If config.ntfyUrl is set, Send the exception to ntfy if (config.ntfyUrl) fetch(config.ntfyUrl, { method: 'POST', // PUT works too - body: error.stack, + body: JSON.stringify(error), headers: { 'Title': 'FreePBX Bot Rejection', 'Priority': 5,