'error' 事件


当写入数据发生错误时触发。

当触发 'error' 事件时,流还未被关闭。

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.