Skip to content

Commit 763af6d

Browse files
committed
Log the exception in form detach subcommand
1 parent 598a95c commit 763af6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/net/discordjug/javabot/systems/staff_commands/forms/commands/DetachFormSubcommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import net.discordjug.javabot.systems.staff_commands.forms.FormInteractionManager;
99
import net.discordjug.javabot.systems.staff_commands.forms.dao.FormsRepository;
1010
import net.discordjug.javabot.systems.staff_commands.forms.model.FormData;
11+
import net.discordjug.javabot.util.ExceptionLogger;
1112
import net.dv8tion.jda.api.components.actionrow.ActionRow;
1213
import net.dv8tion.jda.api.components.actionrow.ActionRowChildComponentUnion;
1314
import net.dv8tion.jda.api.components.buttons.Button;
@@ -106,7 +107,7 @@ public static void detachFromMessage(FormData form, Guild guild) {
106107
return ActionRow.of(cpts);
107108
}).filter(Objects::nonNull).toList();
108109
msg.editMessageComponents(components).queue();
109-
}, _ -> {});
110+
}, e -> ExceptionLogger.capture(e));
110111
}
111112

112113
}

0 commit comments

Comments
 (0)