summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/runqueue.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index b2c9703594..075c84985a 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -601,7 +601,13 @@ class RunQueueData:
601 continue 601 continue
602 602
603 if target[1] not in taskData.tasks_lookup[fnid]: 603 if target[1] not in taskData.tasks_lookup[fnid]:
604 bb.msg.fatal("RunQueue", "Task %s does not exist for target %s" % (target[1], target[0])) 604 import difflib
605 close_matches = difflib.get_close_matches(target[1], taskData.tasks_lookup[fnid], cutoff=0.7)
606 if close_matches:
607 extra = ". Close matches:\n %s" % "\n ".join(close_matches)
608 else:
609 extra = ""
610 bb.msg.fatal("RunQueue", "Task %s does not exist for target %s%s" % (target[1], target[0], extra))
605 611
606 listid = taskData.tasks_lookup[fnid][target[1]] 612 listid = taskData.tasks_lookup[fnid][target[1]]
607 613