doc: clarify IncomingMessage.destroy() description

State that the 'error' event is emitted on the underlying socket, not
the IncomingMessage object.

PR-URL: https://github.com/nodejs/node/pull/30255
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
This commit is contained in:
Sam Foxman authored and Myles Borins committed 2019-12-17 17:07:01 -05:00
1 parent ca960614af
commit 7bc8c85d53
1 file changed
+2 -2
+2 -2
View File
@@ -1672,8 +1672,8 @@ added: v0.3.0
* `error` {Error}
Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`
is provided, an `'error'` event is emitted and `error` is passed as an argument
to any listeners on the event.
is provided, an `'error'` event is emitted on the socket and `error` is passed
as an argument to any listeners on the event.
### message.headers
<!-- YAML