mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
fix: dont log error object before handling
This commit is contained in:
1 parent
851e9321f5
commit
c35a3ad5aa
1 file changed
+2
-2
@@ -28,7 +28,7 @@ export const handleError = async (
|
||||
executionId: executionId
|
||||
});
|
||||
|
||||
if (error instanceof InteractionValidationError) {
|
||||
if (error instanceof InteractionValidationError || error.type === 'InteractionValidationError') {
|
||||
logger.debug(
|
||||
`Interaction validation error '${error.message}' while handling interaction '${interactionIdentifier}'.`
|
||||
);
|
||||
@@ -47,7 +47,7 @@ export const handleError = async (
|
||||
]
|
||||
};
|
||||
|
||||
logger.debug(error, `Error handling interaction '${interactionIdentifier}' with execution ID ${executionId}`);
|
||||
logger.debug(`Error handling interaction '${interactionIdentifier}'`);
|
||||
|
||||
if (interaction instanceof ChatInputCommandInteraction) {
|
||||
switch (interaction.replied) {
|
||||
|
||||
Reference in new issue
Block a user