[gobject-introspection] [message] exit after calling message.fatal()



commit a3cbbdd0cb7e72ee7086bbfa7951cf8c0c862789
Author: Johan Dahlin <johan gnome org>
Date:   Thu Sep 2 15:52:28 2010 -0300

    [message] exit after calling message.fatal()

 giscanner/message.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/message.py b/giscanner/message.py
index 10a32a6..da53b70 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]