mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
Add missing catch
This commit is contained in:
parent
7f856a1d1f
commit
8bc5be8ba7
1 changed files with 5 additions and 3 deletions
|
@ -5480,10 +5480,10 @@ index 0000000000000000000000000000000000000000..49a087381307eab263f7dad43aaa2598
|
||||||
+}
|
+}
|
||||||
diff --git a/src/main/java/io/papermc/paper/plugin/provider/source/DirectoryProviderSource.java b/src/main/java/io/papermc/paper/plugin/provider/source/DirectoryProviderSource.java
|
diff --git a/src/main/java/io/papermc/paper/plugin/provider/source/DirectoryProviderSource.java b/src/main/java/io/papermc/paper/plugin/provider/source/DirectoryProviderSource.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..3185c91e859013d0a222cc5a559e30c4bd9da84a
|
index 0000000000000000000000000000000000000000..162c8ce2cb5e5863ea88c1bfbe90ab45288b50e4
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/io/papermc/paper/plugin/provider/source/DirectoryProviderSource.java
|
+++ b/src/main/java/io/papermc/paper/plugin/provider/source/DirectoryProviderSource.java
|
||||||
@@ -0,0 +1,65 @@
|
@@ -0,0 +1,67 @@
|
||||||
+package io.papermc.paper.plugin.provider.source;
|
+package io.papermc.paper.plugin.provider.source;
|
||||||
+
|
+
|
||||||
+import com.mojang.logging.LogUtils;
|
+import com.mojang.logging.LogUtils;
|
||||||
|
@ -5518,6 +5518,8 @@ index 0000000000000000000000000000000000000000..3185c91e859013d0a222cc5a559e30c4
|
||||||
+ 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..3185c91e859013d0a222cc5a559e30c4
|
||||||
+ 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 a new issue