mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +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
|
executionId: executionId
|
||||||
});
|
});
|
||||||
|
|
||||||
if (error instanceof InteractionValidationError) {
|
if (error instanceof InteractionValidationError || error.type === 'InteractionValidationError') {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`Interaction validation error '${error.message}' while handling interaction '${interactionIdentifier}'.`
|
`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) {
|
if (interaction instanceof ChatInputCommandInteraction) {
|
||||||
switch (interaction.replied) {
|
switch (interaction.replied) {
|
||||||
|
|||||||
Reference in new issue
Block a user