diff --git a/lib/bundle.js b/lib/bundle.js index befc31f..a517c8a 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -52,6 +52,10 @@ function bundle (input, nc, complete) { bfs.pipe(ws); // pipe it to the write stream we created earlier + ws.on('error', function(err) { + console.log(err); + }) + ws.on('close', function() { // may need to be added later // source = source.replace(/[^\x00-\x7F]/g, "");