From 8874ae66e226a6bf59a0431117f34d2a47c1719c Mon Sep 17 00:00:00 2001 From: Roman / Linnea Gräf Date: Fri, 2 Dec 2022 14:34:42 +0100 Subject: Fix ZipError not being caught (#469) --- .../moulberry/notenoughupdates/loader/KotlinLoadingTweaker.java | 4 ++-- 1 file 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(); } } -- cgit