From c8930fb9bf647b88bba9b6e7be4f4ea119fb3d57 Mon Sep 17 00:00:00 2001 From: Sam Foxman Date: Mon, 4 Nov 2019 17:45:27 -0500 Subject: 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 Reviewed-By: Denys Otrishko --- doc/api/http.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 44bea87e3b..9762abd27e 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1798,8 +1798,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