fix: throw CommandException itself in GrepLogPlugin

This commit is contained in:
Chayapak 2024-11-10 12:10:28 +07:00
parent 4f8d5bfff5
commit 11f478487d
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA

View file

@ -129,6 +129,9 @@ public class GrepLogPlugin {
context.sendOutput(component); context.sendOutput(component);
}); });
} catch (CommandException e) {
running = false;
throw e;
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
running = false; running = false;
throw new CommandException(Component.text("File not found")); throw new CommandException(Component.text("File not found"));