summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 37f7d7544e..1acb0a4f8c 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -471,7 +471,13 @@ def runfetchcmd(cmd, d, quiet = False, cleanup = []):
471 except bb.process.NotFoundError as e: 471 except bb.process.NotFoundError as e:
472 error_message = "Fetch command %s" % (e.command) 472 error_message = "Fetch command %s" % (e.command)
473 except bb.process.ExecutionError as e: 473 except bb.process.ExecutionError as e:
474 error_message = "Fetch command %s failed with exit code %s, output:\nSTDOUT: %s\nSTDERR: %s" % (e.command, e.exitcode, e.stdout, e.stderr) 474 if e.stdout:
475 output = "output:\n%s\n%s" % (e.stdout, e.stderr)
476 elif e.stderr:
477 output = "output:\n%s" % e.stderr
478 else:
479 output = "no output"
480 error_message = "Fetch command failed with exit code %s, %s" % (e.exitcode, output)
475 except bb.process.CmdError as e: 481 except bb.process.CmdError as e:
476 error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg) 482 error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg)
477 if not success: 483 if not success: