From cd40816e8f743647978acb086a3dc8b5c2fd66b4 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sun, 25 Feb 2024 20:19:27 +1100 Subject: [PATCH] Log transaction failed const to console instead of nowhere --- src/models/punishments.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/models/punishments.ts b/src/models/punishments.ts index 4b795c7..17c54de 100644 --- a/src/models/punishments.ts +++ b/src/models/punishments.ts @@ -213,7 +213,8 @@ export class PunishmentsSvc { }); } catch (err) { Logger.console('error', 'Punishment', err); - return TRANSACTION_FAILED; + Logger.console('log', 'Punishment:Transaction', TRANSACTION_FAILED); + return; } if (interaction) return interaction.editReply({embeds: [embed]}); @@ -272,7 +273,8 @@ export class PunishmentsSvc { }); } catch (err) { Logger.console('error', 'Punishment', err); - return TRANSACTION_FAILED; + Logger.console('log', 'Punishment:Transaction', TRANSACTION_FAILED); + return; } if (interaction) return interaction.reply({embeds: [new this.client.embed()