Skip to content

errors: move error codes into separate module

Move error codes into a new separate module internal/error_codes. And the guides/using-internal-errors.md are also changed.

This PR only separate the error codes in internal/errors.js. I think the rest of error codes in ./lib should wait for some future PRs.

Ref: #14216 (closed), #11273 (closed)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

errors

Merge request reports

Loading