summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorMario Domenech Goulart <mario.goulart@bmw-carit.de>2016-07-21 16:08:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-25 09:23:44 +0100
commitdf7f4897c463a48c45514e2bcbd44cc7f86c4bb0 (patch)
tree0c51e4a665e4ea8700a084ee8a6e87e7fe7fd8f6 /lib/bb/fetch2/__init__.py
parentcc1a1bc2ea6ae058278d4ecf483f5ea00502c6cb (diff)
downloadbitbake-contrib-df7f4897c463a48c45514e2bcbd44cc7f86c4bb0.tar.gz
fetcher2/__init__: Print command in case of ExecutionError in runfetchcmd
Signed-off-by: Mario Domenech Goulart <mario.goulart@bmw-carit.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-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 e2ceca0d8..3eabba16b 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -832,7 +832,7 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None):
output = "output:\n%s" % e.stderr
else:
output = "no output"
- error_message = "Fetch command failed with exit code %s, %s" % (e.exitcode, output)
+ error_message = "Fetch command %s failed with exit code %s, %s" % (e.command, e.exitcode, output)
except bb.process.CmdError as e:
error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg)
if not success: