summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/shell.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-09-09 18:03:40 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:35 +0000
commit9897d56861a3894e34bf77a62255dc57e680a18e (patch)
treec9ac420fedf434e693d364d70380fe1b9475bd86 /bitbake/lib/bb/shell.py
parent1e7204a7b5b7b9a73759646fa0e297c7b4bc55ed (diff)
downloadopenembedded-core-9897d56861a3894e34bf77a62255dc57e680a18e.tar.gz
openembedded-core-9897d56861a3894e34bf77a62255dc57e680a18e.tar.bz2
openembedded-core-9897d56861a3894e34bf77a62255dc57e680a18e.zip
Simplify build exception handling
- Drop EventException - Use FuncFailed as the primary function failure exception, using TaskFailed for the event (leaving it up to the process running exec_{func,task} to display the more detailed information available in the exception). - Switch InvalidTask to an exception rather than an event, as that's a critical issue. - Reduce the number of messages shown to the user when a task fails -- they don't need to be told it fails 12 times. Work remains in this area though. (Bitbake rev: 06b742aae2b8013cbb269cc30554cff89e3a5667) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/shell.py')
-rw-r--r--bitbake/lib/bb/shell.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/shell.py b/bitbake/lib/bb/shell.py
index f9ca9d5bd3..c61e93a1cb 100644
--- a/bitbake/lib/bb/shell.py
+++ b/bitbake/lib/bb/shell.py
@@ -180,11 +180,9 @@ class BitBakeShellCommands:
last_exception = Providers.NoProvider
except runqueue.TaskFailure as fnids:
- for fnid in fnids:
- print("ERROR: '%s' failed" % td.fn_index[fnid])
last_exception = runqueue.TaskFailure
- except build.EventException as e:
+ except build.FuncFailed as e:
print("ERROR: Couldn't build '%s'" % names)
last_exception = e
@@ -247,7 +245,7 @@ class BitBakeShellCommands:
cooker.buildFile(bf, cmd)
except parse.ParseError:
print("ERROR: Unable to open or parse '%s'" % bf)
- except build.EventException as e:
+ except build.FuncFailed as e:
print("ERROR: Couldn't build '%s'" % name)
last_exception = e