From 03b161cea0ea8c30206e8fb264e84f8e42f1f49b Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 29 May 2013 08:51:40 -0500 Subject: [PATCH] expand exception text to return text reason from endpoint --- barbicanclient/common/exceptions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/barbicanclient/common/exceptions.py b/barbicanclient/common/exceptions.py index 7a5dd281..49c5f6ab 100644 --- a/barbicanclient/common/exceptions.py +++ b/barbicanclient/common/exceptions.py @@ -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)