bitbake/lib/bb/process.py:15: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
class CmdError(RuntimeError):
- def __init__(self, command, message=None):
+ def __init__(self, command, msg=None):
self.command = command
- self.message = message
+ self.msg = msg
def __str__(self):
if not isinstance(self.command, basestring):
cmd = self.command
msg = "Execution of '%s' failed" % cmd
- if self.message:
- msg += ': %s' % self.message
+ if self.msg:
+ msg += ': %s' % self.msg
return msg
class NotFoundError(CmdError):