better logging of errors
Merge pull request #75 from jdoconnor/better-logging-of-errors

better logging of errors