-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: JavaScript
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.
- duplicates
-
SERVER-10160 gen_error_codes.py should generate a js module with symbolic constants for the error codes in the shell.
- Closed