Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 23, 2010
1 parent f541043 commit 7b119f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' &&
Expand Down

0 comments on commit 7b119f8

Please sign in to comment.