Merge "Make console show and delete exception msg better"

This commit is contained in:
Jenkins 2014-11-13 04:26:15 +00:00 committed by Gerrit Code Review
commit d9d04933a4
1 changed files with 4 additions and 4 deletions

View File

@ -107,8 +107,8 @@ class Controller(object):
req.environ['nova.context'],
server_id,
int(id))
except exception.NotFound:
raise exc.HTTPNotFound()
except exception.NotFound as e:
raise exc.HTTPNotFound(explanation=e.format_message())
return _translate_detail_keys(console)
def delete(self, req, server_id, id):
@ -117,8 +117,8 @@ class Controller(object):
self.console_api.delete_console(req.environ['nova.context'],
server_id,
int(id))
except exception.NotFound:
raise exc.HTTPNotFound()
except exception.NotFound as e:
raise exc.HTTPNotFound(explanation=e.format_message())
return webob.Response(status_int=202)