mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Fix error message
This commit is contained in:
1 parent
f541043618
commit
7b119f8b38
1 file changed
+1
-1
+1
-1
@@ -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' &&
|
||||
|
||||
Reference in new issue
Block a user