doc: document 'error' event for stream.Writable
authorFedor Indutny <fedor.indutny@gmail.com>
Fri, 6 Dec 2013 15:36:43 +0000 (19:36 +0400)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Fri, 6 Dec 2013 18:26:49 +0000 (10:26 -0800)
fix #5255

doc/api/stream.markdown

index d750dbf..5ea3e3d 100644 (file)
@@ -577,6 +577,10 @@ reader.pipe(writer);
 reader.unpipe(writer);
 ```
 
+#### Event: 'error'
+
+Emitted if there was an error when writing or piping data.
+
 ### Class: stream.Duplex
 
 Duplex streams are streams that implement both the [Readable][] and