diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-07-10 16:44:24 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-07-10 16:44:24 -0400 |
commit | ef85749d9a217d8293b2e03b1067d2bcea54b694 (patch) | |
tree | 73ac90c7a90eb3b00bf05c890bf30521ae305477 /buildscripts/errorcodes.py | |
parent | 81ed23939d7b94a14371241db247a76e85f050fe (diff) | |
download | mongo-ef85749d9a217d8293b2e03b1067d2bcea54b694.tar.gz |
Make errorcodes.py return a non-zero code on failure
Diffstat (limited to 'buildscripts/errorcodes.py')
-rwxr-xr-x | buildscripts/errorcodes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildscripts/errorcodes.py b/buildscripts/errorcodes.py index 7cdbcfa52d9..e59dec3d05a 100755 --- a/buildscripts/errorcodes.py +++ b/buildscripts/errorcodes.py @@ -9,6 +9,7 @@ Optionally replaces zero codes in source code with new distinct values. import os import re import utils +import sys from collections import defaultdict, namedtuple from optparse import OptionParser @@ -306,6 +307,7 @@ def main(): replaceBadCodes(errors, next) else: print ERROR_HELP + sys.exit(1) ERROR_HELP = """ |