[vreg] help understanding assertion error stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 07 Jun 2011 08:02:11 +0200
branchstable
changeset 7465 bb0c89d1a078
parent 7453 84046395d2cd
child 7467 5a6b3e51807d
[vreg] help understanding assertion error
cwvreg.py
--- a/cwvreg.py	Mon Jun 06 15:00:58 2011 +0200
+++ b/cwvreg.py	Tue Jun 07 08:02:11 2011 +0200
@@ -756,7 +756,7 @@
                           sitewide=False):
         """register a given property"""
         properties = self['propertydefs']
-        assert type in YAMS_TO_PY
+        assert type in YAMS_TO_PY, 'unknown type %s' % type
         properties[key] = {'type': type, 'vocabulary': vocabulary,
                            'default': default, 'help': help,
                            'sitewide': sitewide}