fix: throw CommandException itself in GrepLogPlugin
This commit is contained in:
parent
4f8d5bfff5
commit
11f478487d
1 changed files with 3 additions and 0 deletions
|
@ -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"));
|
||||||
|
|
Loading…
Reference in a new issue