annotationparser: include symbol name in warning
authorStefan Kost <ensonic@users.sf.net>
Fri, 4 Dec 2009 16:42:48 +0000 (18:42 +0200)
committerStefan Kost <ensonic@users.sf.net>
Fri, 4 Dec 2009 21:01:32 +0000 (23:01 +0200)
Telling file and line would be better, but alreday this way one atleast has a
chance to fix it actually.

giscanner/annotationparser.py

index 67d732e..27cbd8e 100644 (file)
@@ -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