From 0d78b4e21d17e300eb54e9631639426acd8417c4 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sun, 11 Aug 2019 11:23:46 +0200 Subject: [PATCH] doc: stream error can close stream --- doc/api/stream.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 7d54c92f21003e..36018760646f35 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -277,7 +277,9 @@ added: v0.9.4 The `'error'` event is emitted if an error occurred while writing or piping data. The listener callback is passed a single `Error` argument when called. -The stream is not closed when the `'error'` event is emitted. +The stream is not closed when the `'error'` event is emitted unless the +[`autoDestroy`][writable-new] option was set to `true` when creating the +stream. ##### Event: 'finish'