-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
_tls_wrap: Migrate the errors to internal/errors #17709 #17792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
doc/api/errors.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is not quite accurate. Perhaps:
Triggered when an attempt is made to renegotiate the secure configuration on a TLS
socket after renegotiation has been disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with other error descriptions, this should start with An attempt was made...
This migrates the old style error messages to use internal/errors.js Fixes: nodejs#17709
This commit follows the previous commit. Tested Linting and added this commit Fixes: nodejs#17709
This migrates the old style error messages to use internal/errors.js Fixes: nodejs#17709
This commit follows the previous commit. Tested Linting and added this commit Fixes: nodejs#17709
…TIATION_DISABLED This commit paraphrases the error message corresponding to the ERR_TLS_RENEGOTIATION_DISABLED key, so as to ensure consistency with the other error messages. Fixes: nodejs#17709
d2e16af to
55dabaf
Compare
|
@jasnell I have paraphrased the message. Please let me know if this works :) |
doc/api/errors.md
Outdated
| <a id="ERR_TLS_RENEGOTIATION_DISABLED"></a> | ||
| ### ERR_TLS_RENEGOTIATION_DISABLED | ||
|
|
||
| An attempt was made to renegotiate TLS on a socket instance with TLS disabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny tiny nit: there is an extra space before disabled ;)
Remove the extra space in the message corresponding to the key ERR_TLS_RENEGOTIATION_DISABLED . Fixes: nodejs#17709
|
Landed in 79261f3, thanks for the contribution and welcome to Node.js! |
Refs: #17709
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
The
doc/api/errors.mdfile has been modified to include theERR_TLS_RENEGOTIATION_DISABLEDerror .Also, modified the files
lib/_tls_wrap.js,lib/internal/errors.js,test/parallel/test-tls-disable-renegotiation.jsso as to add theERR_TLS_RENEGOTIATION_DISABLEDerror