diff options
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 995089a384..ce52960b43 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -375,6 +375,12 @@ def _print_exception(t, value, tb, realfile, text, context): | |||
375 | level = level + 1 | 375 | level = level + 1 |
376 | 376 | ||
377 | error.append("Exception: %s" % ''.join(exception)) | 377 | error.append("Exception: %s" % ''.join(exception)) |
378 | |||
379 | # If the exception is from spwaning a task, let's be helpful and display | ||
380 | # the output (which hopefully includes stderr). | ||
381 | if isinstance(value, subprocess.CalledProcessError): | ||
382 | error.append("Subprocess output:") | ||
383 | error.append(value.output.decode("utf-8", errors="ignore")) | ||
378 | finally: | 384 | finally: |
379 | logger.error("\n".join(error)) | 385 | logger.error("\n".join(error)) |
380 | 386 | ||