[gobject-introspection] scanner: Don't duplicate fatal message text
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: Don't duplicate fatal message text
- Date: Wed, 29 Sep 2010 18:24:12 +0000 (UTC)
commit efa132538fde19eb2ce5e93866bbbff26a0d09ff
Author: Colin Walters <walters verbum org>
Date: Wed Sep 29 13:55:16 2010 -0400
scanner: Don't duplicate fatal message text
giscanner/message.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/message.py b/giscanner/message.py
index 4aa63f4..ec7ace0 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]