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