From d2e954b5ab2194a0a3f2228c84cb75641f8438a3 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Wed, 19 Aug 2015 15:29:08 -0700 Subject: [PATCH] emit error --- lib/bundle.js | 4 ++++ 1 file changed, 4 insertions(+) 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, "");