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