From 72264a2e860514e15b5a976926c4a54ac3d6933a Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Wed, 21 Jun 2023 15:13:27 +0200 Subject: [PATCH] Add supressed exception for more info 2 --- .../java/de/bluecolored/bluemap/core/util/FileHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/util/FileHelper.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/util/FileHelper.java index 895a72bb..6217125a 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/util/FileHelper.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/util/FileHelper.java @@ -62,9 +62,9 @@ public static void move(Path from, Path to) throws IOException { try { Files.move(from, to, StandardCopyOption.REPLACE_EXISTING); } catch (FileNotFoundException | NoSuchFileException ignore) { - } catch (IOException ex2) { - ex2.addSuppressed(ex); - throw ex2; + } catch (Throwable t) { + t.addSuppressed(ex); + throw t; } } }