diff options
author | davidmarkclements <huperekchuno@googlemail.com> | 2018-04-04 19:36:04 +0200 |
---|---|---|
committer | Matteo Collina <hello@matteocollina.com> | 2018-04-09 13:29:48 +0200 |
commit | ef07d6570f1c6345b7f991ca2d986dec6a481350 (patch) | |
tree | fd6b6912a54225abebb5246b1403b462d3e07f23 /test/parallel/test-http2-util-headers-list.js | |
parent | add1c02bda14be1e00f92ef1e7b2c155abaeeeae (diff) | |
download | android-node-v8-ef07d6570f1c6345b7f991ca2d986dec6a481350.tar.gz android-node-v8-ef07d6570f1c6345b7f991ca2d986dec6a481350.tar.bz2 android-node-v8-ef07d6570f1c6345b7f991ca2d986dec6a481350.zip |
errors: change ERR_HTTP2_HEADER_SINGLE_VALUE to TypeError
changes the base instance for ERR_HTTP2_HEADER_SINGLE_VALUE
from Error to TypeError as a more accurate representation
of the error. Additionally corrects the grammar of the error
message.
PR-URL: https://github.com/nodejs/node/pull/19805
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-http2-util-headers-list.js')
-rw-r--r-- | test/parallel/test-http2-util-headers-list.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-http2-util-headers-list.js b/test/parallel/test-http2-util-headers-list.js index 0ff6b558d9..0e5c519264 100644 --- a/test/parallel/test-http2-util-headers-list.js +++ b/test/parallel/test-http2-util-headers-list.js @@ -177,8 +177,8 @@ const { common.expectsError({ code: 'ERR_HTTP2_HEADER_SINGLE_VALUE', - type: Error, - message: 'Header field ":status" must have only a single value' + type: TypeError, + message: 'Header field ":status" must only have a single value' })(mapToHeaders(headers)); } @@ -223,7 +223,7 @@ const { HTTP2_HEADER_USER_AGENT, HTTP2_HEADER_X_CONTENT_TYPE_OPTIONS ].forEach((name) => { - const msg = `Header field "${name}" must have only a single value`; + const msg = `Header field "${name}" must only have a single value`; common.expectsError({ code: 'ERR_HTTP2_HEADER_SINGLE_VALUE', message: msg |