From 7b721eb971ad00c25b2fc48ce6eab8d1eef03294 Mon Sep 17 00:00:00 2001 From: Shailesh Shekhawat Date: Wed, 27 Jun 2018 22:05:32 +0800 Subject: [PATCH] errors: fix undefined HTTP2 and tls errors Includes implementation of tls, HTTP2 error with documentation. PR-URL: https://github.com/nodejs/node/pull/21564 Refs: https://github.com/nodejs/node/issues/21440 Reviewed-By: Matteo Collina Reviewed-By: Anatoli Papirovski --- doc/api/errors.md | 5 +++++ lib/internal/errors.js | 1 + 2 files changed, 6 insertions(+) diff --git a/doc/api/errors.md b/doc/api/errors.md index 1ab394580e7b76..13193f95ca9af8 100755 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -826,6 +826,11 @@ send something other than a regular file. The `Http2Session` closed with a non-zero error code. + +### ERR_HTTP2_SETTINGS_CANCEL + +The `Http2Session` settings canceled. + ### ERR_HTTP2_SOCKET_BOUND diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 7a26d863fe0818..d216e9c37cf0b0 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -333,6 +333,7 @@ E('ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED', 'Cannot set HTTP/2 pseudo-headers'); E('ERR_HTTP2_PUSH_DISABLED', 'HTTP/2 client has disabled push streams'); E('ERR_HTTP2_SEND_FILE', 'Only regular files can be sent'); E('ERR_HTTP2_SESSION_ERROR', 'Session closed with error code %s'); +E('ERR_HTTP2_SETTINGS_CANCEL', 'HTTP2 session settings canceled'); E('ERR_HTTP2_SOCKET_BOUND', 'The socket is already bound to an Http2Session'); E('ERR_HTTP2_STATUS_101',