[gobject-introspection] scanner: Actually exit with code 1 on fatal warnings again



commit 381bdbb54a588bdeabe072869c2a4fc6e44e4f5e
Author: Colin Walters <walters verbum org>
Date:   Fri Sep 3 12:22:47 2010 -0400

    scanner: Actually exit with code 1 on fatal warnings again

 giscanner/message.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/message.py b/giscanner/message.py
index da53b70..7644c1e 100644
--- a/giscanner/message.py
+++ b/giscanner/message.py
@@ -97,7 +97,7 @@ If the warning is related to a ast.Node type, see log_node_warning()."""
 '''%s: %s: %s: %s\n''' % (last_position, error_type, self._namespace.name, text))
 
         if log_type == FATAL:
-            raise SystemExit
+            raise SystemExit(1)
 
     def log_node(self, log_type, node, text, context=None):
         """Log a warning, using information about file positions from



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