Commit 055b6b17 authored by kosak's avatar kosak
Browse files

Prevent gmock_gen from returning exit code zero on a failure to parse.

parent f58b49a2
......@@ -217,7 +217,7 @@ def main(argv=sys.argv):
return
except:
# An error message was already printed since we couldn't parse.
pass
sys.exit(1)
else:
lines = _GenerateMocks(filename, source, entire_ast, desired_class_names)
sys.stdout.write('\n'.join(lines))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment