diff options
author | Karel Klic <kklic@redhat.com> | 2009-10-20 16:49:10 +0200 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2009-10-20 16:49:10 +0200 |
commit | 8ea7097910579362f994ceaf17b9d256ce894826 (patch) | |
tree | 4cd2e960654664c7542f7e15705ee790b18848a6 /src/CLI/report.cpp | |
parent | f16349195d117198603d6c951b7af434afda2339 (diff) | |
download | abrt-8ea7097910579362f994ceaf17b9d256ce894826.tar.gz abrt-8ea7097910579362f994ceaf17b9d256ce894826.tar.xz abrt-8ea7097910579362f994ceaf17b9d256ce894826.zip |
Print error on unlink failure.
Diffstat (limited to 'src/CLI/report.cpp')
-rw-r--r-- | src/CLI/report.cpp | 3 |
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); |