diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 37fed16e4e..5bf2c4b8cf 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -943,7 +943,10 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None): | |||
943 | elif e.stderr: | 943 | elif e.stderr: |
944 | output = "output:\n%s" % e.stderr | 944 | output = "output:\n%s" % e.stderr |
945 | else: | 945 | else: |
946 | output = "no output" | 946 | if log: |
947 | output = "see logfile for output" | ||
948 | else: | ||
949 | output = "no output" | ||
947 | error_message = "Fetch command %s failed with exit code %s, %s" % (e.command, e.exitcode, output) | 950 | error_message = "Fetch command %s failed with exit code %s, %s" % (e.command, e.exitcode, output) |
948 | except bb.process.CmdError as e: | 951 | except bb.process.CmdError as e: |
949 | error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg) | 952 | error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg) |