[c-c list] tell more about the pb when some cube information is missing stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Nov 2010 09:19:43 +0100
branchstable
changeset 6675 12ee2fe13fa7
parent 6674 fd9c76196bf7
child 6676 39763487ba33
[c-c list] tell more about the pb when some cube information is missing
cwctl.py
--- a/cwctl.py	Fri Nov 05 09:18:48 2010 +0100
+++ b/cwctl.py	Fri Nov 05 09:19:43 2010 +0100
@@ -235,9 +235,9 @@
                     tinfo = cwcfg.cube_pkginfo(cube)
                     tversion = tinfo.version
                     cfgpb.add_cube(cube, tversion)
-                except ConfigurationError:
+                except ConfigurationError, ex:
                     tinfo = None
-                    tversion = '[missing cube information]'
+                    tversion = '[missing cube information: %s]' % ex
                 print '* %s %s' % (cube.ljust(namesize), tversion)
                 if self.config.verbose:
                     if tinfo: