Format Xen-API error messages nicely.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-12-28 15:52:31 +00:00
1 parent d9c6b3982f
commit a80a083a0e
1 file changed
+2 -1
+2 -1
View File
@@ -1780,7 +1780,8 @@ def _run_cmd(cmd, cmd_name, args):
except SystemExit, code:
return code == 0, code
except XenAPI.Failure, exn:
print >>sys.stderr, str(exn)
for line in [''] + wrap(str(exn), 80) + ['']:
print >>sys.stderr, line
except xmlrpclib.Fault, ex:
if ex.faultCode == XendClient.ERROR_INVALID_DOMAIN:
err("Domain '%s' does not exist." % ex.faultString)
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.