show full error on /forecast

This commit is contained in:
Christopher Cookman 2024-06-20 11:07:14 -06:00
parent be0d17cf6d
commit 6bdc4240be

View file

@ -1289,7 +1289,7 @@ discord.on("interactionCreate", async (interaction) => {
interaction.editReply({ embeds });
}).catch((err) => {
interaction.editReply({ content: "Failed to get forecast", ephemeral: true });
if (config.debug >= 1) console.log(`${colors.red("[ERROR]")} Failed to get forecast: ${err.message}`);
if (config.debug >= 1) console.log(`${colors.red("[ERROR]")} Failed to get forecast: ${err}`);
});
break;