aboutsummaryrefslogtreecommitdiffstats
path: root/sos/sosreport.py
diff options
context:
space:
mode:
Diffstat (limited to 'sos/sosreport.py')
-rw-r--r--sos/sosreport.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 9da1ff63..6f62bb47 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -1147,6 +1147,13 @@ class SoSReport(object):
# compression could fail for a number of reasons
try:
final_filename = self.archive.finalize(self.opts.compression_type)
+ except OSError as e:
+ if e.errno in fatal_fs_errors:
+ self.ui_log.error("")
+ self.ui_log.error(" %s while finalizing archive"
+ % e.strerror)
+ self.ui_log.error(" %s" % e.filename)
+ self._exit(1)
except:
if self.opts.debug:
raise