summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-23 18:52:29 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-23 18:53:55 -0300
commitbbbe2a2903530ad7246233e2987ed174cf2b0c32 (patch)
tree8a301a5055af9051ca76986750219c4f359c6719
parentb57c12a01e48e6b75aab97d409d45ce110978536 (diff)
downloadgobject-introspection-bbbe2a2903530ad7246233e2987ed174cf2b0c32.tar.gz
Make the invalid annotation warning a bit prettier
-rw-r--r--giscanner/annotationparser.py2
-rw-r--r--tests/warn/invalid-option.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 4febc598..58094d0d 100644
--- a/giscanner/annotationparser.py
+++ b/giscanner/annotationparser.py
@@ -128,7 +128,7 @@ class DocTag(object):
def validate(self):
for option in self.options:
if not option in ALL_OPTIONS:
- message.warn('invalid option: %s' % (option, ),
+ message.warn('invalid annotation option: %s' % (option, ),
positions=self.position)
if option == OPT_TRANSFER:
value = self.options[option]
diff --git a/tests/warn/invalid-option.h b/tests/warn/invalid-option.h
index 88cd2512..41985a0e 100644
--- a/tests/warn/invalid-option.h
+++ b/tests/warn/invalid-option.h
@@ -5,7 +5,7 @@
*/
void test_func(int param);
-// EXPECT:4: Warning: Test: invalid option: invalid-annotation-option
+// EXPECT:4: Warning: Test: invalid annotation option: invalid-annotation-option
/**
* func_weird_gtk_doc: