aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/archive.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sos/archive.py b/sos/archive.py
index c0d3d426..6d3b3494 100644
--- a/sos/archive.py
+++ b/sos/archive.py
@@ -177,8 +177,9 @@ class FileCacheArchive(Archive):
if os.path.exists(src):
try:
shutil.copystat(src, dest)
- except OSError:
- pass
+ except OSError as e:
+ self.log_error(
+ "Unable to add '%s' to FileCacheArchive: %s" % (dest, e))
self.log_debug("added string at '%s' to FileCacheArchive '%s'"
% (src, self._archive_root))