Browse Source

stream: Emit error on stream object, not global

Apparently this function got abstracted out at some point, and 'this'
wasn't changed to the correct object.
v0.10.0-release
isaacs 12 years ago
parent
commit
90368770e6
  1. 2
      lib/_stream_transform.js

2
lib/_stream_transform.js

@ -89,7 +89,7 @@ function afterTransform(stream, er, data) {
var cb = ts.writecb;
if (!cb)
return this.emit('error', new Error('no writecb in Transform class'));
return stream.emit('error', new Error('no writecb in Transform class'));
ts.writechunk = null;
ts.writecb = null;

Loading…
Cancel
Save