[scanner] Clarify exception message
authorJohan Dahlin <johan@gnome.org>
Mon, 6 Sep 2010 20:02:00 +0000 (17:02 -0300)
committerJohan Dahlin <johan@gnome.org>
Mon, 6 Sep 2010 20:02:00 +0000 (17:02 -0300)
giscanner/ast.py

index 551dbb1594419b243ce8bcd91a7b4083673247bc..b03d43f9c399be406f4954c286b71d2419813490 100644 (file)
@@ -352,7 +352,7 @@ returned."""
         previous = self._names.get(node.name)
         if previous is not None:
             if not replace:
-                raise ValueError("Namespace conflict")
+                raise ValueError("Namespace conflict: %r" % (node, ))
             self.remove(previous)
         # A layering violation...but oh well.
         from .glibast import GLibBoxed