Make the invalid annotation warning a bit prettier
authorJohan Dahlin <johan@gnome.org>
Thu, 23 Sep 2010 21:52:29 +0000 (18:52 -0300)
committerJohan Dahlin <johan@gnome.org>
Thu, 23 Sep 2010 21:53:55 +0000 (18:53 -0300)
giscanner/annotationparser.py
tests/warn/invalid-option.h

index 4febc59..58094d0 100644 (file)
@@ -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]
index 88cd251..41985a0 100644 (file)
@@ -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: