From 11f478487d0614a96b42bc6d7eb6238e93e07c1c Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 10 Nov 2024 12:10:28 +0700 Subject: [PATCH] fix: throw CommandException itself in GrepLogPlugin --- .../java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java index 3bbc8c9..6ad2788 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/GrepLogPlugin.java @@ -129,6 +129,9 @@ public class GrepLogPlugin { context.sendOutput(component); }); + } catch (CommandException e) { + running = false; + throw e; } catch (FileNotFoundException e) { running = false; throw new CommandException(Component.text("File not found"));