Adds missing error msg for HTTPNotFound exception
Fixes bug 1199373 Change-Id: Ie1e554bd192c90de420672e4b87c489b8ffffc85
This commit is contained in:
parent
daa572dd9e
commit
5884ca4825
@ -165,7 +165,7 @@ class ImagesController(object):
|
||||
except exception.NotFound as e:
|
||||
msg = ("Failed to find image %(image_id)s to delete" % locals())
|
||||
LOG.info(msg)
|
||||
raise webob.exc.HTTPNotFound()
|
||||
raise webob.exc.HTTPNotFound(explanation=msg)
|
||||
|
||||
|
||||
class RequestDeserializer(wsgi.JSONRequestDeserializer):
|
||||
|
@ -46,7 +46,7 @@ class Controller(object):
|
||||
except exception.NotFound:
|
||||
msg = _("Image %(id)s not found")
|
||||
LOG.info(msg % {'id': image_id})
|
||||
raise webob.exc.HTTPNotFound()
|
||||
raise webob.exc.HTTPNotFound(msg)
|
||||
except exception.Forbidden:
|
||||
# If it's private and doesn't belong to them, don't let on
|
||||
# that it exists
|
||||
@ -80,7 +80,7 @@ class Controller(object):
|
||||
except exception.NotFound:
|
||||
msg = _("Image %(id)s not found")
|
||||
LOG.info(msg % {'id': image_id})
|
||||
raise webob.exc.HTTPNotFound()
|
||||
raise webob.exc.HTTPNotFound(msg)
|
||||
except exception.Forbidden:
|
||||
# If it's private and doesn't belong to them, don't let on
|
||||
# that it exists
|
||||
@ -193,7 +193,7 @@ class Controller(object):
|
||||
except exception.NotFound:
|
||||
msg = _("Image %(id)s not found")
|
||||
LOG.info(msg % {'id': image_id})
|
||||
raise webob.exc.HTTPNotFound()
|
||||
raise webob.exc.HTTPNotFound(msg)
|
||||
except exception.Forbidden:
|
||||
# If it's private and doesn't belong to them, don't let on
|
||||
# that it exists
|
||||
@ -253,7 +253,7 @@ class Controller(object):
|
||||
except exception.NotFound:
|
||||
msg = _("Image %(id)s not found")
|
||||
LOG.info(msg % {'id': image_id})
|
||||
raise webob.exc.HTTPNotFound()
|
||||
raise webob.exc.HTTPNotFound(msg)
|
||||
except exception.Forbidden:
|
||||
# If it's private and doesn't belong to them, don't let on
|
||||
# that it exists
|
||||
|
Loading…
Reference in New Issue
Block a user