summaryrefslogtreecommitdiffstats
path: root/src/CLI/report.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CLI/report.cpp')
-rw-r--r--src/CLI/report.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CLI/report.cpp b/src/CLI/report.cpp
index 57dc6251..e1a0cd2f 100644
--- a/src/CLI/report.cpp
+++ b/src/CLI/report.cpp
@@ -335,7 +335,8 @@ int report(const char *uuid, bool always)
read_crash_report(cr, text);
free(text);
- /*int result = */unlink(filename);
+ if (unlink(filename) != 0)
+ error_msg("could not unlink %s: %s", filename, strerror(errno));
printf(_("\nThe report has been updated.\nDo you want to send the report? [y/N]: "));
fflush(NULL);