summaryrefslogtreecommitdiff
path: root/giscanner/message.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-29 13:55:16 -0400
committerColin Walters <walters@verbum.org>2010-09-29 14:02:35 -0400
commitefa132538fde19eb2ce5e93866bbbff26a0d09ff (patch)
tree1e28f9e6be408c01514b1617a051ecbbc831cb5a /giscanner/message.py
parent9e21e287deb34be3a3e2a6d3d1f96e9e71a00c18 (diff)
downloadgobject-introspection-efa132538fde19eb2ce5e93866bbbff26a0d09ff.tar.gz
scanner: Don't duplicate fatal message text
Diffstat (limited to 'giscanner/message.py')
-rw-r--r--giscanner/message.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/message.py b/giscanner/message.py
index 4aa63f4f..ec7ace00 100644
--- a/giscanner/message.py
+++ b/giscanner/message.py
@@ -126,9 +126,10 @@ If the warning is related to a ast.Node type, see log_node_warning()."""
text = (
'''%s: %s: %s: %s\n''' % (last_position, error_type, self._namespace.name, text))
- self._output.write(text)
if log_type == FATAL:
raise SystemExit(text)
+ else:
+ self._output.write(text)
def log_node(self, log_type, node, text, context=None, positions=None):
"""Log a warning, using information about file positions from