Pass error message when unexpected error occurs
Merge pull request #146 from HolymarsHsieh/master

Pass error message when unexpected error occurs
Thanks @HolymarsHsieh