From 5de1b4c4f628cddd23df07f1b09e4e0be62dc941 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 4 Dec 2009 18:42:48 +0200 Subject: [PATCH] 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 file 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 -- 2.7.4