summaryrefslogtreecommitdiff
path: root/cinderclient/exceptions.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-04-18 19:30:36 +0000
committerGerrit Code Review <review@openstack.org>2014-04-18 19:30:36 +0000
commit04eaa48eb606d3136e091fa6c0ef406438341502 (patch)
tree3765b3a923fb74721dd47089019463e984348b61 /cinderclient/exceptions.py
parent1eb83d04800a5c3186ee823adb2013151f12bca1 (diff)
parent52ce0b205e336d7545947a13b4a4f3dfc490d51e (diff)
downloadpython-cinderclient-04eaa48eb606d3136e091fa6c0ef406438341502.tar.gz
Merge "When there is no error body return the HTTP reason"
Diffstat (limited to 'cinderclient/exceptions.py')
-rw-r--r--cinderclient/exceptions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cinderclient/exceptions.py b/cinderclient/exceptions.py
index 41796e3..751e425 100644
--- a/cinderclient/exceptions.py
+++ b/cinderclient/exceptions.py
@@ -181,4 +181,5 @@ def from_response(response, body):
return cls(code=response.status_code, message=message, details=details,
request_id=request_id)
else:
- return cls(code=response.status_code, request_id=request_id)
+ return cls(code=response.status_code, request_id=request_id,
+ message=response.reason)