[XEND] Return an Internal Server Error via the Xend HTTP server.

This allows domain creation failures can be detected when done via HTTP.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
atse@norwich.uk.xensource.com committed 2006-09-12 16:33:33 +01:00
1 parent f1b7d71605
commit 82f6d80e3a
1 file changed
+1
+1
View File
@@ -84,6 +84,7 @@ class SrvBase(resource.Resource):
try:
return op_method(op, req)
except Exception, exn:
req.setResponseCode(http.INTERNAL_SERVER_ERROR, "Request failed: " + op)
log.exception("Request %s failed.", op)
if req.useSxp():
return ['xend.err', str(exn)]
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.