diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-03-30 15:24:00 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-30 10:42:40 +0100 |
commit | 8922f1d23400049d2894a97915a533769a24ca07 (patch) | |
tree | b70f0615810021b581d06d95833b7d96b1572d65 /lib/bb/tinfoil.py | |
parent | 54a4757ca706afc6e98c7692f960592e80cab12b (diff) | |
download | bitbake-contrib-8922f1d23400049d2894a97915a533769a24ca07.tar.gz |
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
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tinfoil.py')
-rw-r--r-- | lib/bb/tinfoil.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py index 14a2271cd..928333a50 100644 --- a/lib/bb/tinfoil.py +++ b/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): |