mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-25 20:16:00 +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 {
|
try {
|
||||||
Files.move(from, to, StandardCopyOption.REPLACE_EXISTING);
|
Files.move(from, to, StandardCopyOption.REPLACE_EXISTING);
|
||||||
} catch (FileNotFoundException | NoSuchFileException ignore) {
|
} catch (FileNotFoundException | NoSuchFileException ignore) {
|
||||||
} catch (IOException ex2) {
|
} catch (Throwable t) {
|
||||||
ex2.addSuppressed(ex);
|
t.addSuppressed(ex);
|
||||||
throw ex2;
|
throw t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user