Adjust exception catch slightly

This commit is contained in:
dordsor21 2021-09-20 23:07:58 +01:00
parent f8ed4e0c38
commit 040edc8fd0
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -141,7 +141,7 @@ public class RichPatternParser extends FaweParser<Pattern> {
List<String> 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, () -> {