summaryrefslogtreecommitdiff
path: root/buildscripts/errorcodes.py
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2014-07-10 16:44:24 -0400
committerSpencer T Brody <spencer@mongodb.com>2014-07-10 16:44:24 -0400
commitef85749d9a217d8293b2e03b1067d2bcea54b694 (patch)
tree73ac90c7a90eb3b00bf05c890bf30521ae305477 /buildscripts/errorcodes.py
parent81ed23939d7b94a14371241db247a76e85f050fe (diff)
downloadmongo-ef85749d9a217d8293b2e03b1067d2bcea54b694.tar.gz
Make errorcodes.py return a non-zero code on failure
Diffstat (limited to 'buildscripts/errorcodes.py')
-rwxr-xr-xbuildscripts/errorcodes.py2
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 = """