diff options
Diffstat (limited to 'bitbake/lib')
| -rw-r--r-- | bitbake/lib/bb/process.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py index 808cd60f92..4150d80e06 100644 --- a/bitbake/lib/bb/process.py +++ b/bitbake/lib/bb/process.py | |||
| @@ -10,9 +10,9 @@ def subprocess_setup(): | |||
| 10 | signal.signal(signal.SIGPIPE, signal.SIG_DFL) | 10 | signal.signal(signal.SIGPIPE, signal.SIG_DFL) |
| 11 | 11 | ||
| 12 | class CmdError(RuntimeError): | 12 | class CmdError(RuntimeError): |
| 13 | def __init__(self, command, message=None): | 13 | def __init__(self, command, msg=None): |
| 14 | self.command = command | 14 | self.command = command |
| 15 | self.message = message | 15 | self.msg = msg |
| 16 | 16 | ||
| 17 | def __str__(self): | 17 | def __str__(self): |
| 18 | if not isinstance(self.command, basestring): | 18 | if not isinstance(self.command, basestring): |
| @@ -21,8 +21,8 @@ class CmdError(RuntimeError): | |||
| 21 | cmd = self.command | 21 | cmd = self.command |
| 22 | 22 | ||
| 23 | msg = "Execution of '%s' failed" % cmd | 23 | msg = "Execution of '%s' failed" % cmd |
| 24 | if self.message: | 24 | if self.msg: |
| 25 | msg += ': %s' % self.message | 25 | msg += ': %s' % self.msg |
| 26 | return msg | 26 | return msg |
| 27 | 27 | ||
| 28 | class NotFoundError(CmdError): | 28 | class NotFoundError(CmdError): |
