From 7b119f8b38671ca7ee26d369ccc7f629fb9bc3bf Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 23 Jun 2010 09:09:15 -0700 Subject: [PATCH] Fix error message --- lib/net.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net.js b/lib/net.js index 716326a57b..fd7a8fce79 100644 --- a/lib/net.js +++ b/lib/net.js @@ -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' &&