diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-02-23 22:28:29 +0100 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2018-03-04 13:52:31 +0100 |
commit | 7bc8eb8da7ccdcd67edaf612b6599ec04ab77cb1 (patch) | |
tree | 49760a75c64906b4b959be477d923b11416c3ca4 /test/parallel/test-http2-max-concurrent-streams.js | |
parent | f2b9805f85d3ff770892b37944a0890e0e60ca78 (diff) | |
download | android-node-v8-7bc8eb8da7ccdcd67edaf612b6599ec04ab77cb1.tar.gz android-node-v8-7bc8eb8da7ccdcd67edaf612b6599ec04ab77cb1.tar.bz2 android-node-v8-7bc8eb8da7ccdcd67edaf612b6599ec04ab77cb1.zip |
http2: refer to stream errors by name
Display the constant name instead of a stream error code
in the error message, because the numerical codes give absolutely
no clue about what happened when an error is emitted.
PR-URL: https://github.com/nodejs/node/pull/18966
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'test/parallel/test-http2-max-concurrent-streams.js')
-rw-r--r-- | test/parallel/test-http2-max-concurrent-streams.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http2-max-concurrent-streams.js b/test/parallel/test-http2-max-concurrent-streams.js index ffc04e98f1..b270d6cc6a 100644 --- a/test/parallel/test-http2-max-concurrent-streams.js +++ b/test/parallel/test-http2-max-concurrent-streams.js @@ -50,7 +50,7 @@ server.listen(0, common.mustCall(() => { req.on('error', common.expectsError({ code: 'ERR_HTTP2_STREAM_ERROR', type: Error, - message: 'Stream closed with error code 7' + message: 'Stream closed with error code NGHTTP2_REFUSED_STREAM' })); } })); |