Show an error message when deletion of stale cache fails.
authorZac Medico <zmedico@gentoo.org>
Sat, 11 Apr 2009 02:43:35 +0000 (02:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 11 Apr 2009 02:43:35 +0000 (02:43 -0000)
svn path=/main/trunk/; revision=13315

bin/egencache

index 89708ad71fc5698fd97707a8739e516fba178713..4103651d50d44b3eb1f6f337929a303c2e94a099 100755 (executable)
@@ -244,8 +244,11 @@ class GenCache(object):
                                        del trg_cache[k]
                                except KeyError:
                                        pass
-                               except CacheError:
+                               except CacheError, ce:
                                        self.returncode |= 1
+                                       writemsg_level(
+                                               "%s deleting stale cache: %s\n" % (k, ce),
+                                               level=logging.ERROR, noiselevel=-1)
 
                if not trg_cache.autocommits:
                        try: