aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-10-05 15:50:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-08 16:44:31 +0100
commit8de9dc02ed6a73b47f2ab10be30d1aed7954bc72 (patch)
tree00e6be23f0559799307f63cad5086bd1f746f1f8 /lib/bb/fetch2
parentc3440b82cbe9c317f9961d61e12ea37fc9541ce0 (diff)
downloadbitbake-8de9dc02ed6a73b47f2ab10be30d1aed7954bc72.tar.gz
fetch2: clarify the command-no-found error message
If runfetchcmd() fails with bb.process.NotFoundError, the message output is simply "Fetch command" which doesn't really explain what the problem is. Add "not found" to clarify what happened. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2')
-rw-r--r--lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index ee29d89b1..259b2637a 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -884,7 +884,7 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None):
(output, errors) = bb.process.run(cmd, log=log, shell=True, stderr=subprocess.PIPE, cwd=workdir)
success = True
except bb.process.NotFoundError as e:
- error_message = "Fetch command %s" % (e.command)
+ error_message = "Fetch command %s not found" % (e.command)
except bb.process.ExecutionError as e:
if e.stdout:
output = "output:\n%s\n%s" % (e.stdout, e.stderr)