summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/servers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py
index 71dc1e2ae..e90e30b7d 100644
--- a/nova/api/openstack/compute/servers.py
+++ b/nova/api/openstack/compute/servers.py
@@ -478,7 +478,8 @@ class Controller(wsgi.Controller):
raise exc.HTTPRequestEntityTooLarge(explanation=expl,
headers={'Retry-After': 0})
# if the original error is okay, just reraise it
- raise error
+ raise exc.HTTPRequestEntityTooLarge(explanation=error.msg,
+ headers={'Retry-After': 0})
def _validate_server_name(self, value):
if not isinstance(value, basestring):