expand exception text to return text reason from endpoint

This commit is contained in:
Paul Kehrer
2013-05-29 08:51:40 -05:00
parent f0ca65d52f
commit 03b161cea0

View File

@@ -8,5 +8,8 @@ class ClientException(Exception):
self.http_status = http_status
self.http_response_content = http_response_content
msg = "%s %s returned %d" % (self.method, self.href, self.http_status)
msg = "%s %s returned %d with msg: %s" % (self.method,
self.href,
self.http_status,
self.http_response_content)
Exception.__init__(self, msg)