diff --git a/heatclient/common/http.py b/heatclient/common/http.py index d08bdef3..4b46c71d 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):