summaryrefslogtreecommitdiff
path: root/giscanner/scannermain.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r--giscanner/scannermain.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index ceca66f4..c2c1ac3d 100644
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -444,8 +444,12 @@ def create_source_scanner(options, args):
options.cpp_defines,
options.cpp_undefines,
cflags=options.cflags)
- ss.parse_files(filenames)
- ss.parse_macros(filenames)
+ try:
+ ss.parse_files(filenames)
+ ss.parse_macros(filenames)
+ finally:
+ for error in ss.get_errors():
+ print(error, file=sys.stderr)
return ss, filenames