added function for handling errors
Merge branch 'master' of https://github.com/evalgo/eve