mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 10:35:16 +01:00
Add supressed exception for more info 2
This commit is contained in:
parent
e66838cdbc
commit
72264a2e86
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user