svn path=/trunk/packages/invirt-base/; revision=2095
+invirt-base (0.0.21) unstable; urgency=low
+
+ * Get rid of confusing err=True option to invirt.remctl.remctl
+
+ -- Evan Broder <broder@mit.edu> Fri, 30 Jan 2009 19:49:46 -0500
+
invirt-base (0.0.20) unstable; urgency=low
* depend on remctl-client
class CodeError(Exception):
"""Exception for internal errors or bad faith input."""
- pass
+ def __init__(self, message, code=None):
+ Exception.__init__(self, message)
+ self.code = code
#
# Tests.
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
v = p.wait()
- if kws.get('err'):
- return p.stdout.read(), p.stderr.read()
if v:
- print >> sys.stderr, 'Error', v, 'on remctl', args, ':'
- print >> sys.stderr, p.stderr.read()
- raise CodeError('ERROR on remctl')
+ raise CodeError('ERROR on remctl %s:\n%s' % (args, p.stderr.read()), v)
return p.stdout.read()