catch error event
emit error event
remove null argument
Merge pull request #32 from ericsaboia/master

Display error when it is passed to next