From 946b7d308a0fa688d612e44455dc9f072f4617b6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 07:04:19 +0000 Subject: [PATCH] Show an error message when deletion of stale cache fails. (trunk r13315) svn path=/main/branches/2.1.6/; revision=13486 --- bin/egencache | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/egencache b/bin/egencache index 89708ad71..4103651d5 100755 --- a/bin/egencache +++ b/bin/egencache @@ -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: -- 2.26.2