runqueue.py: Don't give a stacktrace for invalid tasks, have a user friendly message...
authorRichard Purdie <rpurdie@linux.intel.com>
Sun, 6 Jan 2008 00:54:46 +0000 (00:54 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Sun, 6 Jan 2008 00:54:46 +0000 (00:54 +0000)
ChangeLog
lib/bb/runqueue.py

index 0c84120..7f23c7b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 
index 895092d..68ef3a7 100644 (file)
@@ -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)