diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-11-24 21:05:35 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-11-24 21:05:35 +0000 |
| commit | cacb4830d95d7c20363b93d3671e092942fe0c8b (patch) | |
| tree | dcdbb1ce2fd83ebaab953f12bbfa29c67a91fe77 /keystoneclient/httpclient.py | |
| parent | b2c39848d7810afd6c0cffeca83bd8003802e7e5 (diff) | |
| parent | 9dd978817bb26280121161fbdc9a47b612d8ed61 (diff) | |
| download | python-keystoneclient-cacb4830d95d7c20363b93d3671e092942fe0c8b.tar.gz | |
Merge "Improved error message on connection failure"
Diffstat (limited to 'keystoneclient/httpclient.py')
| -rw-r--r-- | keystoneclient/httpclient.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystoneclient/httpclient.py b/keystoneclient/httpclient.py index c567b9f..0d6c918 100644 --- a/keystoneclient/httpclient.py +++ b/keystoneclient/httpclient.py @@ -113,8 +113,8 @@ def request(url, method='GET', headers=None, original_ip=None, debug=False, url, headers=headers, **kwargs) - except requests.ConnectionError: - msg = 'Unable to establish connection to %s' % url + except requests.ConnectionError as e: + msg = 'Unable to establish connection to %s: %s' % (url, e) raise exceptions.ClientException(msg) if debug: |
