Browse Source

Fix error message

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
7b119f8b38
  1. 2
      lib/net.js

2
lib/net.js

@ -658,7 +658,7 @@ Stream.prototype.write = function (data, encoding, fd) {
if (this._writeQueue && this._writeQueue.length) { if (this._writeQueue && this._writeQueue.length) {
// Slow. There is already a write queue, so let's append to it. // Slow. There is already a write queue, so let's append to it.
if (this._writeQueueLast() === END_OF_FILE) { 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' && if (typeof data == 'string' &&

Loading…
Cancel
Save