Display error to user

Fixed bug where an error message from the server caused the code to
throw a ValueError exception without displaying the error message from
the server