From a6f65ae3a066ce4346b912b01ffce6cde3d76766 Mon Sep 17 00:00:00 2001 From: AsamK Date: Tue, 15 Sep 2015 13:26:36 +0200 Subject: [PATCH] =?utf8?q?Print=20error=20if=20temporary=20attachment=20fi?= =?utf8?q?le=20can=E2=80=99t=20be=20deleted?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/cli/Manager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/cli/Manager.java b/src/main/java/cli/Manager.java index 3a56377e..10291f20 100644 --- a/src/main/java/cli/Manager.java +++ b/src/main/java/cli/Manager.java @@ -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; } -- 2.50.1