forked from ChrisChrome/weather-bot
show full error on /forecast
This commit is contained in:
parent
be0d17cf6d
commit
6bdc4240be
2
index.js
2
index.js
|
@ -1289,7 +1289,7 @@ discord.on("interactionCreate", async (interaction) => {
|
||||||
interaction.editReply({ embeds });
|
interaction.editReply({ embeds });
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
interaction.editReply({ content: "Failed to get forecast", ephemeral: true });
|
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;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue