mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-23 13:08:32 +01:00
Add missing catch
This commit is contained in:
parent
e07a036b9f
commit
6fba18bac1
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue