From 51a89a19f1fbd7b05f3f280c893e3b7e408f34a2 Mon Sep 17 00:00:00 2001 From: Mittelblut9 Date: Thu, 12 Oct 2023 20:10:40 +0200 Subject: [PATCH 1/2] fix: add error to log --- utils/classes/Notifications/YouTube/YouTubeNotification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/classes/Notifications/YouTube/YouTubeNotification.js b/utils/classes/Notifications/YouTube/YouTubeNotification.js index 9308cc084..912c5b514 100644 --- a/utils/classes/Notifications/YouTube/YouTubeNotification.js +++ b/utils/classes/Notifications/YouTube/YouTubeNotification.js @@ -111,7 +111,7 @@ module.exports = class YouTubeNotification extends YouTubeLogic { ); } catch (err) { console.error( - `I have failed to send a youtube upload message to ${channel.name} (${channel.id}) in ${guild.name} (${guild.id}). LINK: ${latestVideo.link}` + `I have failed to send a youtube upload message to ${channel.name} (${channel.id}) in ${guild.name} (${guild.id}). LINK: ${latestVideo.link}`, err ); } From 3c7e1be455afb4c4a468098f5f80afc5836fceaa Mon Sep 17 00:00:00 2001 From: Mittelblut9 Date: Thu, 12 Oct 2023 20:12:13 +0200 Subject: [PATCH 2/2] style: prettier changes --- utils/classes/Notifications/YouTube/YouTubeNotification.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/classes/Notifications/YouTube/YouTubeNotification.js b/utils/classes/Notifications/YouTube/YouTubeNotification.js index 912c5b514..972bcd64b 100644 --- a/utils/classes/Notifications/YouTube/YouTubeNotification.js +++ b/utils/classes/Notifications/YouTube/YouTubeNotification.js @@ -111,7 +111,8 @@ module.exports = class YouTubeNotification extends YouTubeLogic { ); } catch (err) { console.error( - `I have failed to send a youtube upload message to ${channel.name} (${channel.id}) in ${guild.name} (${guild.id}). LINK: ${latestVideo.link}`, err + `I have failed to send a youtube upload message to ${channel.name} (${channel.id}) in ${guild.name} (${guild.id}). LINK: ${latestVideo.link}`, + err ); }