diff options
author | Colin Walters <walters@verbum.org> | 2010-09-29 13:55:16 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-09-29 14:02:35 -0400 |
commit | efa132538fde19eb2ce5e93866bbbff26a0d09ff (patch) | |
tree | 1e28f9e6be408c01514b1617a051ecbbc831cb5a /giscanner | |
parent | 9e21e287deb34be3a3e2a6d3d1f96e9e71a00c18 (diff) | |
download | gobject-introspection-efa132538fde19eb2ce5e93866bbbff26a0d09ff.tar.gz |
scanner: Don't duplicate fatal message text
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/message.py | 3 |
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 |