Details
-
Improvement
-
Resolution: Duplicate
-
Trivial - P5
-
None
-
None
Description
It would be nice if generate_error_codes.py also generated a javascript file that looked something like this:
var ErrorCodes = {
|
OK: 0,
|
InternalError: 1,
|
...
|
};
|
The file could potentially be /jstests/libs/error_codes.js
This would help make jstests that exercise error handling more readable.
Attachments
Issue Links
- duplicates
-
SERVER-10160 gen_error_codes.py should generate a js module with symbolic constants for the error codes in the shell.
-
- Closed
-