diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-12-04 18:42:48 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-12-04 23:01:32 +0200 |
commit | 5de1b4c4f628cddd23df07f1b09e4e0be62dc941 (patch) | |
tree | ec43c8f305d63b88ccc325ffaead66a41dc6d816 | |
parent | df7e6b4c031b865c56fcf44644f1bf9c700885d8 (diff) | |
download | gobject-introspection-5de1b4c4f628cddd23df07f1b09e4e0be62dc941.tar.gz |
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.
-rw-r--r-- | giscanner/annotationparser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 67d732eb..27cbd8eb 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 |