diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2018-11-21 02:30:34 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-12-03 09:38:59 +0300 |
commit | b05b330025b9d69baa82812774be92b1be4a318c (patch) | |
tree | ce4ef87bdfe790c6af54f81d545865bd4265b3e0 /src/node_errors.h | |
parent | 3513b0c3d9711e5eee47ef15b7913f0ce4483663 (diff) |
tls: add code for ERR_TLS_INVALID_PROTOCOL_METHOD
Add an error code property to invalid `secureProtocol` method
exceptions.
PR-URL: https://github.com/nodejs/node/pull/24729
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_errors.h')
-rw-r--r-- | src/node_errors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_errors.h b/src/node_errors.h index 2c52007c511..44dc1d8094f 100644 --- a/src/node_errors.h +++ b/src/node_errors.h @@ -71,6 +71,7 @@ void FatalException(const v8::FunctionCallbackInfo<v8::Value>& args); V(ERR_SCRIPT_EXECUTION_INTERRUPTED, Error) \ V(ERR_SCRIPT_EXECUTION_TIMEOUT, Error) \ V(ERR_STRING_TOO_LONG, Error) \ + V(ERR_TLS_INVALID_PROTOCOL_METHOD, TypeError) \ V(ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER, TypeError) \ #define V(code, type) \ |