A type error in errorcodes.py causes it to fail instead of printing a message.
The attached patch fixes this and outputs the message in a format that is similar to compilation errors, so IDEs will allow easy fixing.
TypeError: %d format: a number is required, not str:
File "/Users/bosch/mongo/SConstruct", line 1953:
checkErrorCodes()
File "/Users/bosch/mongo/SConstruct", line 1949:
if x.checkErrorCodes() == False:
File "/Users/bosch/mongo/buildscripts/errorcodes.py", line 127:
(codes, errors) = readErrorCodes()
File "/Users/bosch/mongo/buildscripts/errorcodes.py", line 155:
parseSourceFiles( checkDups )
File "/Users/bosch/mongo/buildscripts/errorcodes.py", line 75:
print( "%s\n%d" % (sourceFile, line) )
Command /Users/bosch/bin/buildx failed with exit code 2