Added error logging of client errors
Merge pull request #4 from christriddle/master

Added error logging of client errors