From d6b4766a78bca2a9644057f983f3ad8c81e57646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Thu, 7 Aug 2014 20:56:34 +0200 Subject: [PATCH] doc: document arguments for 'error' event on a stream Fixes #6361. --- doc/api/stream.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/stream.markdown b/doc/api/stream.markdown index 40ee0a38ae..5c311e8304 100644 --- a/doc/api/stream.markdown +++ b/doc/api/stream.markdown @@ -183,6 +183,8 @@ descriptor) has been closed. Not all streams will emit this. #### Event: 'error' +* {Error Object} + Emitted if there was an error receiving data. #### readable.read([size]) @@ -579,6 +581,8 @@ reader.unpipe(writer); #### Event: 'error' +* {Error object} + Emitted if there was an error when writing or piping data. ### Class: stream.Duplex