diff --git a/nodist/clang_check_attributes b/nodist/clang_check_attributes index 682cd7e72..6794eef54 100755 --- a/nodist/clang_check_attributes +++ b/nodist/clang_check_attributes @@ -434,7 +434,7 @@ class CallAnnotationsValidator: self.process_translation_unit(translation_unit) self._main_source_file = "" self._defines = {} - else: + elif len(errors): print(f"%Error: parsing failed: {filename}", file=sys.stderr) for error in errors: print(f" {error}", file=sys.stderr)