Prettify & use this.emit(‘error’) everywhere
Add missing error emit
Merge pull request #179 from marcbachmann/js-improvements

Use this.emit(‘error’) in streams