diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-07-19 11:56:03 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-21 07:20:14 +0100 |
commit | cb15db2a799be6d8eab9a2a43a9a573f89229cff (patch) | |
tree | 621e636c7ecae24667aaafad97674024540e76b0 /lib/bb/command.py | |
parent | 7efde2df2ff25063d36ac015146f1975284a69ff (diff) | |
download | bitbake-contrib-cb15db2a799be6d8eab9a2a43a9a573f89229cff.tar.gz |
lib/bb/event: refactor printing events
We really ought to have just one place where the string representation
of these events is produced. This doesn't take any real control away
from the UI - if an alternative representation is desired, that can
still be made.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r-- | lib/bb/command.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py index c06ab072a..05803d6af 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -50,6 +50,8 @@ class CommandFailed(CommandExit): def __init__(self, message): self.error = message CommandExit.__init__(self, 1) + def __str__(self): + return "Command execution failed: %s" % self.error class CommandError(Exception): pass |