[gobject-introspection] [scanner] Clarify exception message



commit 6a572204efa10e4e85d6e932b213c8a677183614
Author: Johan Dahlin <johan gnome org>
Date:   Mon Sep 6 17:02:00 2010 -0300

    [scanner] Clarify exception message

 giscanner/ast.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 551dbb1..b03d43f 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]