aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2018-06-05 08:35:39 +0200
committerBryn M. Reeves <bmr@redhat.com>2018-06-07 15:45:38 +0100
commit62aadebc49db6874aa9332a0bcf81a5fff1c066d (patch)
tree81720206f516243b676f4c8a1e9cca6ed0ae51f1
parent703263636b2fa9c6adace90d365f5755d64722b2 (diff)
downloadsos-62aadebc49db6874aa9332a0bcf81a5fff1c066d.tar.gz
[sosreport] more logging when creating archive failed
(Also) in case of not fatal FS error, print some valuable message Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/sosreport.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 0ec18c03..d35ebce9 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -1538,10 +1538,11 @@ class SoSReport(object):
archive = self.archive.finalize(
self.opts.compression_type)
except (OSError, IOError) as e:
+ print("")
+ print(_(" %s while finalizing archive %s" %
+ (e.strerror, self.archive.get_archive_path())))
+ print("")
if e.errno in fatal_fs_errors:
- print("")
- print(_(" %s while finalizing archive" % e.strerror))
- print("")
self._exit(1)
except:
if self.opts.debug: