diff options
-rw-r--r-- | giscanner/sourcescanner.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index e449f504..20339e47 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -298,7 +298,12 @@ class SourceScanner(object): if len(data) < 4096: break fp.seek(0, 0) + assert proc, 'Proc was none' + proc.wait() + if proc.returncode != 0: + raise SystemExit('Error while processing the source.') + self._scanner.parse_file(fp.fileno()) fp.close() os.unlink(tmp) |