From 040edc8fd0b0b86822b4bda0fd815246a0a402d0 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 20 Sep 2021 23:07:58 +0100 Subject: [PATCH] Adjust exception catch slightly --- .../extension/factory/parser/pattern/RichPatternParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/pattern/RichPatternParser.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/pattern/RichPatternParser.java index de76a9b7f..377ea7fb0 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/pattern/RichPatternParser.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/pattern/RichPatternParser.java @@ -141,7 +141,7 @@ public class RichPatternParser extends FaweParser { List args = entry.getValue(); try { pattern = worldEdit.getPatternFactory().parseWithoutRich(full, context); - } catch (SuggestInputParseException rethrow) { + } catch (InputParseException rethrow) { throw rethrow; } catch (Throwable e) { throw SuggestInputParseException.of(e, full, () -> {