[gobject-introspection] Make the invalid annotation warning a bit prettier
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Make the invalid annotation warning a bit prettier
- Date: Fri, 24 Sep 2010 14:16:07 +0000 (UTC)
commit bbbe2a2903530ad7246233e2987ed174cf2b0c32
Author: Johan Dahlin <johan gnome org>
Date: Thu Sep 23 18:52:29 2010 -0300
Make the invalid annotation warning a bit prettier
giscanner/annotationparser.py | 2 +-
tests/warn/invalid-option.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py
index 4febc59..58094d0 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 88cd251..41985a0 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]