[gobject-introspection] annotationparser: include symbol name in warning



commit 5de1b4c4f628cddd23df07f1b09e4e0be62dc941
Author: Stefan Kost <ensonic users sf net>
Date:   Fri Dec 4 18:42:48 2009 +0200

    annotationparser: include symbol name in warning
    
    Telling file and line would be better, but alreday this way one atleast has a
    chance to fix it actually.

 giscanner/annotationparser.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 67d732e..27cbd8e 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -209,8 +209,8 @@ class AnnotationParser(object):
             tag_name, value = self._split_tag_namevalue(line)
             canon_name = tag_name.lower()
             if canon_name in block.tags:
-                print >>sys.stderr, "Multiple definition of tag %r" \
-                    % (canon_name, )
+                print >>sys.stderr, "Symbol %s has multiple definition of tag %r" \
+                    % (block_name, canon_name, )
             block.tags[canon_name] = self._create_tag(canon_name, value)
         block.comment = '\n'.join(comment_lines)
         self._blocks[block.name] = block



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