Removed old debugging code
Fix to use server error handling
Fix to use server error handling
Merge pull request #2 from ionux/master

Fix to use server error handling