]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
make heat-api return a parsable error
authorJianing YANG <jianingy@unitedstack.com>
Thu, 11 Jul 2013 15:17:52 +0000 (23:17 +0800)
committerSteve Baker <sbaker@redhat.com>
Tue, 23 Jul 2013 23:02:22 +0000 (11:02 +1200)
commitc5ab33614b465be28d823072ab1fc897313ae6f3
tree4426d9bd7516ba4b3c93c2fdb043faf6c6be9d44
parentfe1557d60d5cf97c0e035b056e40cba773a0eca1
make heat-api return a parsable error

add a wsgi middleware (faultwrap) that catches exceptions
and transform those exceptions into a parsable format
according to 'Content-Type' of the request.

Fixes bug 1158598
Implements blueprint exception-formatting

Change-Id: Iacdb8cc119b250ff1e39c99b7a7f66fd4c35e7d9
etc/heat/api-paste.ini
heat/api/middleware/fault.py [new file with mode: 0644]
heat/api/openstack/__init__.py
heat/api/openstack/v1/util.py
heat/common/config.py
heat/tests/test_api_openstack_v1.py