fix bug in error handling in subscribe
Merge pull request #5 from codeparty/master

fix bug in error handling in subscribe