mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 10:35:16 +01:00
Add supressed exception for more info
This commit is contained in:
parent
987015b617
commit
e66838cdbc
@ -61,7 +61,11 @@ public static void move(Path from, Path to) throws IOException {
|
|||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
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) {
|
||||||
|
ex2.addSuppressed(ex);
|
||||||
|
throw ex2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user