mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40: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();
|
output.close();
|
||||||
}
|
}
|
||||||
input.close();
|
input.close();
|
||||||
if (!tmpFile.delete()) {
|
try {
|
||||||
System.err.println("Failed to delete temp file: " + tmpFile);
|
Files.delete(tmpFile.toPath());
|
||||||
|
} catch(Exception e) {
|
||||||
|
System.out.println("Failed to delete temp file: " + tmpFile);
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return outputFile;
|
return outputFile;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue