put more infromation in exception to help indicating problem source

if user use sentry to log exception out, he only need to look into sentry
to know what went wrong without checking log file
Merge pull request #610 from hvnsweeting/enhance-exception-info

put more infromation in exception to help indicating problem source