Merge "Fix error message in share delete method"

This commit is contained in:
Jenkins 2014-12-16 23:18:35 +00:00 committed by Gerrit Code Review
commit cfba001832

View File

@ -92,8 +92,8 @@ class ShareController(wsgi.Controller):
self.share_api.delete(context, share)
except exception.NotFound:
raise exc.HTTPNotFound()
except exception.InvalidShare:
raise exc.HTTPForbidden()
except exception.InvalidShare as e:
raise exc.HTTPForbidden(explanation=six.text_type(e))
return webob.Response(status_int=202)