summaryrefslogtreecommitdiff
path: root/heatclient/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-01-19 02:37:42 +0000
committerGerrit Code Review <review@openstack.org>2016-01-19 02:37:42 +0000
commited207849e4911d4f41b3630e4d27c529d39cd6d2 (patch)
treefd93af13e60bca50b79ce19cf03e7913af4f2d04 /heatclient/common
parent7361b9ec494c2379808189239aab379d28088bda (diff)
parent39195c4b5dcb61e2d5d1d611860041c9239a315b (diff)
downloadpython-heatclient-ed207849e4911d4f41b3630e4d27c529d39cd6d2.tar.gz
Merge "Include keystone message when authentication failed"
Diffstat (limited to 'heatclient/common')
-rw-r--r--heatclient/common/http.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/heatclient/common/http.py b/heatclient/common/http.py
index d08bdef..4b46c71 100644
--- a/heatclient/common/http.py
+++ b/heatclient/common/http.py
@@ -209,7 +209,8 @@ class HTTPClient(object):
if not ('X-Auth-Key' in kwargs['headers']) and (
resp.status_code == 401 or
(resp.status_code == 500 and "(HTTP 401)" in resp.content)):
- raise exc.HTTPUnauthorized("Authentication failed")
+ raise exc.HTTPUnauthorized(_("Authentication failed: %s")
+ % resp.content)
elif 400 <= resp.status_code < 600:
raise exc.from_response(resp)
elif resp.status_code in (301, 302, 305):