summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbhagyashris <bhagyashri.shewale@nttdata.com>2016-06-30 18:34:14 +0530
committerbhagyashris <bhagyashri.shewale@nttdata.com>2019-03-06 16:33:54 +0900
commitae4355be01c0b4bcf5b6bdd2c1163b3f6df3e213 (patch)
tree70565b8211a8865ab9928ff57f2617fa5c2d3b6b
parentefc9704bc6f9698ee55a5c40c5254a6355100699 (diff)
downloadpython-glanceclient-ae4355be01c0b4bcf5b6bdd2c1163b3f6df3e213.tar.gz
Remove redundant information from error message
Currently user get redundant HTTP error code in error message. Removed redundant HTTP error code from the message. For Example: Error message display when user trying to get the non existing image: $ glance image-show f433471a-53a8-4d31-bf8f-f0b6b594dfc Error message: 404 Not Found: No image found with ID f433471a-53a8-4d31-bf8f-f0b6b594dfc (HTTP 404) After this fix: HTTP 404 Not Found: No image found with ID f433471a-53a8-4d31-bf8f-f0b6b594dfc Closes-Bug: #1598714 Change-Id: I33971a2a16416c8538158299325471c2a69dbb3e
-rw-r--r--glanceclient/exc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/exc.py b/glanceclient/exc.py
index c8616c3..eee47ca 100644
--- a/glanceclient/exc.py
+++ b/glanceclient/exc.py
@@ -52,7 +52,7 @@ class HTTPException(ClientException):
self.details = details or self.__class__.__name__
def __str__(self):
- return "%s (HTTP %s)" % (self.details, self.code)
+ return "HTTP %s" % (self.details)
class HTTPMultipleChoices(HTTPException):