Skip to content

Commit

Permalink
fix to define the stream so it can emit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Dec 17, 2013
1 parent 871cc2b commit 00af8ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/default_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ var through = require('through');

module.exports = function () {
var line = '';
return through(write, flush);
var stream = through(write, flush);
return stream;

function write (buf) {
for (var i = 0; i < buf.length; i++) {
Expand Down

0 comments on commit 00af8ed

Please sign in to comment.