Skip to content

[v11.x backport] src: add .code and SSL specific error properties

SSL errors have a long structured message, but lacked the standard .code property which can be used for stable comparisons. Add a code property, as well as the 3 string components of an SSL error: reason, library, and function.

PR-URL: https://github.com/nodejs/node/pull/25093 Reviewed-By: James M Snell jasnell@gmail.com Reviewed-By: Daniel Bevenius daniel.bevenius@gmail.com

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading