Show more info on error

Shows the error message and logs the exception object to console
Merge pull request #2 from JonApps/patch-1

Show more info on error