Add supressed exception for more info
This commit is contained in:
parent
987015b617
commit
e66838cdbc
|
@ -61,7 +61,11 @@ public class FileHelper {
|
|||
} catch (IOException ex) {
|
||||
try {
|
||||
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