The source files mongo/base/error_codes.h and mongo/base/error_codes.cpp need to be kept in sync as new error codes are added. This would be easier to do correctly if the files were automatically generated by the build system from a single list of error codes.
Both of the scons and Visual Studio builds should do this, producing identical output files.