From 03b4226242e1fdff2021f562b27430bc12575087 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 30 Mar 2017 15:24:00 +1300 Subject: bitbake: tinfoil: improve get_recipe_file() exception text * Turn reasons from a list into a string (usually there will be only one reason, but the interface provides for more than one) and state up front that the recipe is unavailable for clarity * Use quotes around invalid recipe name (Bitbake rev: 8922f1d23400049d2894a97915a533769a24ca07) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/lib/bb/tinfoil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/tinfoil.py') diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index 14a2271cd2..928333a500 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py @@ -368,9 +368,9 @@ class Tinfoil: taskdata = bb.taskdata.TaskData(None, skiplist=skiplist) skipreasons = taskdata.get_reasons(pn) if skipreasons: - raise bb.providers.NoProvider(skipreasons) + raise bb.providers.NoProvider('%s is unavailable:\n %s' % (pn, ' \n'.join(skipreasons))) else: - raise bb.providers.NoProvider('Unable to find any recipe file matching %s' % pn) + raise bb.providers.NoProvider('Unable to find any recipe file matching "%s"' % pn) return best[3] def get_file_appends(self, fn): -- cgit v1.2.3-54-g00ecf