summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2014-09-30 11:40:52 -0400
committerGeert Bosch <geert@mongodb.com>2014-10-01 16:24:44 -0400
commitd41c5f3514e41310545dc7ff1cd2d056248f5f75 (patch)
tree32b0a3090feba74e2d95fd8e0ffd0da63b05c138 /buildscripts
parentf4514b50d9c4d8509c6108b2c17d021c2aee7d82 (diff)
downloadmongo-d41c5f3514e41310545dc7ff1cd2d056248f5f75.tar.gz
SERVER-15469: Fix errorcodes.py error message for bare assert
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/errorcodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/errorcodes.py b/buildscripts/errorcodes.py
index 1312e4bce6b..16ca66455bf 100755
--- a/buildscripts/errorcodes.py
+++ b/buildscripts/errorcodes.py
@@ -72,8 +72,8 @@ def parseSourceFiles( callback ):
for b in bad:
if b.search(line):
- print( "%s\n%d" % (sourceFile, line) )
msg = "Bare assert prohibited. Replace with [umwdf]assert"
+ print( "%s:%s: %s\n%s" % (sourceFile, lineNum, msg, line) )
raise Exception(msg)
# no more than one pattern should ever match