Skip to content

Commit bfb1a2e

Browse files
committed
SERVER-42624 convert to error_codes.yml
Sort error codes numerically. Move declaration of category membership into the members. Simplify generate_error_codes.py w/argparse, etc.
1 parent f934c24 commit bfb1a2e

File tree

5 files changed

+432
-414
lines changed

5 files changed

+432
-414
lines changed

src/mongo/base/SConscript

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ generateErrorCodes = env_for_error_codes.Command(
1818
],
1919
source=[
2020
'generate_error_codes.py',
21-
'error_codes.err',
21+
'error_codes.yml',
2222
'error_codes.tpl.h',
2323
'error_codes.tpl.cpp',
2424
],
2525
action=[
26-
'$PYTHON ${SOURCES[0]} ${SOURCES[1]} '
27-
'${SOURCES[2]}=${TARGETS[0]} '
28-
'${SOURCES[3]}=${TARGETS[1]}'
26+
'$PYTHON ${SOURCES[0]} ${SOURCES[1]} ${SOURCES[2]} ${TARGETS[0]}',
27+
'$PYTHON ${SOURCES[0]} ${SOURCES[1]} ${SOURCES[3]} ${TARGETS[1]}',
2928
],
3029
)
3130

src/mongo/base/error_codes.err

Lines changed: 0 additions & 362 deletions
This file was deleted.

0 commit comments

Comments
 (0)