diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-01-06 00:54:46 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-01-06 00:54:46 +0000 |
commit | b0f46c6cd833f8674c675de78c185d878f4d7cc0 (patch) | |
tree | 4bceb2ea92bbcdde3abba4657aba9ae25eb5d3e9 | |
parent | ba121e8786e6ab46958b9e65c1ade088b20c9749 (diff) | |
download | bitbake-b0f46c6cd833f8674c675de78c185d878f4d7cc0.tar.gz |
runqueue.py: Don't give a stacktrace for invalid tasks, have a user friendly message (#3431)
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/bb/runqueue.py | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -31,6 +31,7 @@ Changes in BitBake 1.8.x: - Improve runqueue code comments - Add task scheduler abstraction and some example schedulers - Improve circular dependency chain debugging code and user feedback + - Don't give a stacktrace for invalid tasks, have a user friendly message (#3431) Changes in Bitbake 1.8.8: - Rewrite svn fetcher to make adding extra operations easier diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 895092d94..68ef3a722 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -532,6 +532,9 @@ class RunQueue: if fnid in taskData.failed_fnids: continue + if target[1] not in taskData.tasks_lookup[fnid]: + bb.msg.fatal(bb.msg.domain.RunQueue, "Task %s does not exist for target %s" % (target[1], target[0])) + listid = taskData.tasks_lookup[fnid][target[1]] mark_active(listid, 1) |