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-single-headers.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-single-headers.js')
-rw-r--r-- | test/parallel/test-http2-single-headers.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-http2-single-headers.js b/test/parallel/test-http2-single-headers.js index c545b06501..37eaf8b17c 100644 --- a/test/parallel/test-http2-single-headers.js +++ b/test/parallel/test-http2-single-headers.js @@ -31,8 +31,8 @@ server.listen(0, common.mustCall(() => { () => client.request({ [i]: 'abc', [i.toUpperCase()]: 'xyz' }), { code: 'ERR_HTTP2_HEADER_SINGLE_VALUE', - type: Error, - message: `Header field "${i}" must have only a single value` + type: TypeError, + message: `Header field "${i}" must only have a single value` } ); @@ -40,8 +40,8 @@ server.listen(0, common.mustCall(() => { () => client.request({ [i]: ['abc', 'xyz'] }), { code: 'ERR_HTTP2_HEADER_SINGLE_VALUE', - type: Error, - message: `Header field "${i}" must have only a single value` + type: TypeError, + message: `Header field "${i}" must only have a single value` } ); }); |