diff --git a/hooks/oclint.py b/hooks/oclint.py index 399f846..65f052d 100755 --- a/hooks/oclint.py +++ b/hooks/oclint.py @@ -38,7 +38,7 @@ def run(self): current_files = os.listdir(os.getcwd()) self.run_command([filename] + self.args) # Errors are sent to stdout instead of stderr - if b"Errors" in self.stdout: + if b"FilesWithViolations=1" in self.stdout: self.stderr = self.stdout # If errors have been captured, stdout is unexpected self.stdout = b""