mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-11 10:01:55 +01:00
Add missing catch
This commit is contained in:
parent
e07a036b9f
commit
6fba18bac1
@ -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);
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user