]> xenbits.xensource.com Git - xen.git/commitdiff
Fix error logging when we get a 500 response.
authorEwan Mellor <ewan@xensource.com>
Wed, 14 Mar 2007 23:14:19 +0000 (23:14 +0000)
committerEwan Mellor <ewan@xensource.com>
Wed, 14 Mar 2007 23:14:19 +0000 (23:14 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/XenAPI.py

index e557b9ccb8b0c183d3581bb67691fdafbab2c771..ae2448eb7142efbe47df7af4bcf3692aa1bd1816 100644 (file)
@@ -155,7 +155,7 @@ class Session(xen.util.xmlrpclib2.ServerProxy):
 
 def _parse_result(result):
     if type(result) != dict or 'Status' not in result:
-        raise xmlrpclib.Fault(500, 'Missing Status in response from server' + result)
+        raise xmlrpclib.Fault(500, 'Missing Status in response from server: ' + str(result))
     if result['Status'] == 'Success':
         if 'Value' in result:
             return result['Value']