ia64/xen-unstable

changeset 14411:8645c726ce9c

Fix error logging when we get a 500 response.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Mar 14 23:14:19 2007 +0000 (2007-03-14)
parents 1ada28678762
children b39c0a79d4d5
files tools/python/xen/xm/XenAPI.py
line diff
     1.1 --- a/tools/python/xen/xm/XenAPI.py	Wed Mar 14 23:13:37 2007 +0000
     1.2 +++ b/tools/python/xen/xm/XenAPI.py	Wed Mar 14 23:14:19 2007 +0000
     1.3 @@ -155,7 +155,7 @@ class Session(xen.util.xmlrpclib2.Server
     1.4  
     1.5  def _parse_result(result):
     1.6      if type(result) != dict or 'Status' not in result:
     1.7 -        raise xmlrpclib.Fault(500, 'Missing Status in response from server' + result)
     1.8 +        raise xmlrpclib.Fault(500, 'Missing Status in response from server: ' + str(result))
     1.9      if result['Status'] == 'Success':
    1.10          if 'Value' in result:
    1.11              return result['Value']