summaryrefslogtreecommitdiff
path: root/giscanner/scannermain.py
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-07-24 16:56:20 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:55:05 +0200
commit6d9022311b5d3bfb48895466880c2a15235b63a6 (patch)
tree5cf1c16e44b0fce7e74e4002b2585b54ca636679 /giscanner/scannermain.py
parentdb34cca45f4a726e20f2452615068fe1e04bc428 (diff)
downloadgobject-introspection-6d9022311b5d3bfb48895466880c2a15235b63a6.tar.gz
giscanner: give message.ERROR a purpose
It's not yet being used but will be in the future by annotationparser.py to signal the difference between message.WARNING: something is wrong but the comment block can still be parsed and serialized back into a comment block without information being lost message.ERROR: something is wrong and the comment block can *not* be parsed and serialized back into a comment block without information being lost Different tools can then act accordingly. Nothing will change for g-ir-scanner but this will be important for the GTK-Doc comment block rewriting tool to prevent extremely broken input leading to even more broken output...
Diffstat (limited to 'giscanner/scannermain.py')
-rwxr-xr-xgiscanner/scannermain.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index e4436b8c..ab8f5bbf 100755
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -452,7 +452,8 @@ def scanner_main(args):
namespace = create_namespace(options)
logger = message.MessageLogger.get(namespace=namespace)
if options.warn_all:
- logger.enable_warnings(True)
+ logger.enable_warnings((message.WARNING, message.ERROR, message.FATAL))
+
transformer = create_transformer(namespace, options)
packages = set(options.packages)