verbose output for error logging

btw, this repo is surprisingly useful =)
Merge pull request #1 from chenglou/patch-1

verbose output for error logging