aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2022-12-02 14:34:42 +0100
committerGitHub <noreply@github.com>2022-12-02 14:34:42 +0100
commit8874ae66e226a6bf59a0431117f34d2a47c1719c (patch)
treebe751cf5c6239d4bb6c16652235cf7ec09971e54
parent4fba0ccfcac5235cef6e9f2b8e1526b4de332337 (diff)
downloadNotEnoughUpdates-8874ae66e226a6bf59a0431117f34d2a47c1719c.tar.gz
NotEnoughUpdates-8874ae66e226a6bf59a0431117f34d2a47c1719c.tar.bz2
NotEnoughUpdates-8874ae66e226a6bf59a0431117f34d2a47c1719c.zip
Fix ZipError not being caught (#469)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/loader/KotlinLoadingTweaker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/loader/KotlinLoadingTweaker.java b/src/main/java/io/github/moulberry/notenoughupdates/loader/KotlinLoadingTweaker.java
index 68aa8adb..0c63b17d 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/loader/KotlinLoadingTweaker.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/loader/KotlinLoadingTweaker.java
@@ -159,14 +159,14 @@ public class KotlinLoadingTweaker implements ITweaker {
}
classLoader.loadClass("kotlin.KotlinVersion");
System.out.println("Could successfully load a Kotlin class.");
- } catch (Exception e) {
+ } catch (Throwable e) {
System.err.println("Failed to load Kotlin into NEU. This is most likely a bad thing.");
e.printStackTrace();
} finally {
if (fs != null) {
try {
fs.close();
- } catch (IOException e) {
+ } catch (Throwable e) {
e.printStackTrace();
}
}