mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
use java7's nio api to get more detailed error messages
This commit is contained in:
parent
ae3e5be124
commit
e364610c93
1 changed files with 5 additions and 2 deletions
|
@ -1325,8 +1325,11 @@ class Manager implements Signal {
|
|||
output.close();
|
||||
}
|
||||
input.close();
|
||||
if (!tmpFile.delete()) {
|
||||
System.err.println("Failed to delete temp file: " + tmpFile);
|
||||
try {
|
||||
Files.delete(tmpFile.toPath());
|
||||
} catch(Exception e) {
|
||||
System.out.println("Failed to delete temp file: " + tmpFile);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return outputFile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue