mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-25 18:14:27 +01:00
Print error if temporary attachment file can’t be deleted
This commit is contained in:
@@ -293,7 +293,9 @@ class Manager {
|
||||
if (output != null) {
|
||||
output.close();
|
||||
}
|
||||
tmpFile.delete();
|
||||
if (!tmpFile.delete()) {
|
||||
System.err.println("Failed to delete temp file: " + tmpFile);
|
||||
}
|
||||
}
|
||||
return outputFile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user