diff --git a/doc/api/http2.md b/doc/api/http2.md index 0cc4d073a06975..f24e13eeb03309 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -271,12 +271,17 @@ server.on('stream', (stream, headers) => { 'content-type': 'text/html', ':status': 200 }); + stream.on('error', (error) => console.error(error)); stream.end('