Fix error message

This commit is contained in:
Ryan Dahl 2010-06-23 09:09:15 -07:00
parent f541043618
commit 7b119f8b38

View File

@ -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' &&