add error handler
fix #369
Merge pull request #30 from cnodejs/master

合并