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:
parent
e07a036b9f
commit
6fba18bac1
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
+ }
|
||||
|
|
Loading…
Add table
Reference in a new issue