[gobject-introspection] message: handle fatal errors even if warnings are disabled. Fixes #229



commit 0b6bca5d69cc0f5e5564a2858f220fac8ee4789e
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sun Jan 6 18:31:45 2019 +0100

    message: handle fatal errors even if warnings are disabled. Fixes #229

 giscanner/message.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/giscanner/message.py b/giscanner/message.py
index c59d133f..9057c23c 100644
--- a/giscanner/message.py
+++ b/giscanner/message.py
@@ -119,7 +119,7 @@ class MessageLogger(object):
 
         self._warning_count += 1
 
-        if not self._enable_warnings:
+        if not self._enable_warnings and log_type in (WARNING, ERROR):
             return
 
         if type(positions) == set:


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