1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-01-30 19:40:37 +01:00

Add missing catch

This commit is contained in:
Nassim Jahnke 2024-02-01 11:41:29 +01:00
parent e07a036b9f
commit 6fba18bac1

View file

@ -5518,6 +5518,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ this.walkFiles(context, path -> {
+ try {
+ super.prepareContext(path);
+ } catch (IllegalArgumentException ignored) {
+ // Ignore illegal argument exceptions from jar checking
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
@ -5531,7 +5533,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ try {
+ super.registerProviders(entrypointHandler, path);
+ } catch (IllegalArgumentException ignored) {
+ // Ignore initial argument exceptions
+ // Ignore illegal argument exceptions from jar checking
+ } catch (Exception e) {
+ LOGGER.error("Error loading plugin: " + e.getMessage(), e);
+ }