bug
1048109
Change-Id: Iaaa187a7868ee6227315b9c3354b424fe7c42508
except Exception as e:
# NOTE(jkoelker) Everyting else is 500
LOG.exception('%s failed' % action)
- body = serializer({'QuantumError': str(e)})
+ # Do not expose details of 500 error to clients.
+ msg = _('Request Failed: internal server error while '
+ 'processing your request.')
+ body = serializer({'QuantumError': msg})
kwargs = {'body': body, 'content_type': content_type}
raise webob.exc.HTTPInternalServerError(**kwargs)