diff options
author | Colin Walters <walters@verbum.org> | 2015-09-29 10:59:24 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-09-29 10:59:24 -0400 |
commit | 415895066f3395a4c6b6e7ab1cfe6674d962d469 (patch) | |
tree | 16da848cf3409c23d961b4eed60b381f53897970 /giscanner/message.py | |
parent | b13acd817835b57b24b11ce21551130166629cb9 (diff) | |
download | gobject-introspection-415895066f3395a4c6b6e7ab1cfe6674d962d469.tar.gz |
scanner: Explicitly error with constructors but no GObject include
One of the Anaconda developers hit this; the fix was to include
GObject, but without this commit we just traceback'd.
Diffstat (limited to 'giscanner/message.py')
-rw-r--r-- | giscanner/message.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/message.py b/giscanner/message.py index 6392dfc2..a6bdfaa3 100644 --- a/giscanner/message.py +++ b/giscanner/message.py @@ -190,6 +190,8 @@ def warn(text, positions=None, prefix=None, marker_pos=None, marker_line=None): def warn_node(node, text, context=None, positions=None): log_node(WARNING, node, text, context=context, positions=positions) +def error_node(node, text, context=None, positions=None): + log_node(ERROR, node, text, context=context, positions=positions) def warn_symbol(symbol, text): ml = MessageLogger.get() |