Fix error message
This commit is contained in:
parent
f541043618
commit
7b119f8b38
@ -658,7 +658,7 @@ Stream.prototype.write = function (data, encoding, fd) {
|
||||
if (this._writeQueue && this._writeQueue.length) {
|
||||
// Slow. There is already a write queue, so let's append to it.
|
||||
if (this._writeQueueLast() === END_OF_FILE) {
|
||||
throw new Error('Stream.close() called already; cannot write.');
|
||||
throw new Error('Stream.end() called already; cannot write.');
|
||||
}
|
||||
|
||||
if (typeof data == 'string' &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user