Commit 3b630bfb authored by Christoph Reiter's avatar Christoph Reiter 🐍

maintransformer: when the namespace is empty use error() instead of fatal()

network-manager is calling things like this during configure:
g-ir-scanner --namespace=test --library=c /dev/null --output /dev/null
to test if the scanner is working. This results in a fatal error, but
beause of #229 was ignored.

Do keep this working after we fix #229 downgrade this to a simple recoverable
error message. An empty namespace doesn't prevent the scanner from creating
a .gir file so this should be fine.
parent 06a460b3
......@@ -47,7 +47,7 @@ class MainTransformer(object):
def transform(self):
if not self._namespace.names:
message.fatal('Namespace is empty; likely causes are:\n'
message.error('Namespace is empty; likely causes are:\n'
'* Not including .h files to be scanned\n'
'* Broken --identifier-prefix')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment