Detect when gobject-introspection is missing

Instead of a compiler bug error, show a proper error message that asks
whether gobject-introspection is installed.

Fixes #58.
This commit is contained in:
James Westman 2022-05-27 11:17:48 -05:00
parent f6355fe412
commit 42aa91d4d9
3 changed files with 9 additions and 1 deletions

View file

@ -81,6 +81,8 @@ class AstNode:
validator(self)
except CompileError as e:
yield e
if e.fatal:
return
for child in self.children:
yield from child._get_errors()