summaryrefslogtreecommitdiff
path: root/giscanner/message.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-02 15:52:28 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-02 15:52:58 -0300
commita3cbbdd0cb7e72ee7086bbfa7951cf8c0c862789 (patch)
treec2be1ff724ea6305de1f38b911f957c40af1c8b9 /giscanner/message.py
parent718d2b008f4e19f8dc8304559e528ac56638a478 (diff)
downloadgobject-introspection-a3cbbdd0cb7e72ee7086bbfa7951cf8c0c862789.tar.gz
[message] exit after calling message.fatal()
Diffstat (limited to 'giscanner/message.py')
-rw-r--r--giscanner/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/message.py b/giscanner/message.py
index 10a32a6a..da53b70c 100644
--- a/giscanner/message.py
+++ b/giscanner/message.py
@@ -96,7 +96,6 @@ If the warning is related to a ast.Node type, see log_node_warning()."""
self._output.write(
'''%s: %s: %s: %s\n''' % (last_position, error_type, self._namespace.name, text))
-
if log_type == FATAL:
raise SystemExit
@@ -156,3 +155,4 @@ def warn_symbol(symbol, text):
def fatal(text, file_positions=None, prefix=None):
ml = MessageLogger.get()
ml.log(FATAL, text, file_positions, prefix)
+ raise SystemExit