summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/process.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/process.py')
-rw-r--r--bitbake/lib/bb/process.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py
index 2dc472a86f..24c588e533 100644
--- a/bitbake/lib/bb/process.py
+++ b/bitbake/lib/bb/process.py
@@ -179,5 +179,8 @@ def run(cmd, input=None, log=None, extrafiles=None, **options):
179 stderr = stderr.decode("utf-8") 179 stderr = stderr.decode("utf-8")
180 180
181 if pipe.returncode != 0: 181 if pipe.returncode != 0:
182 if log:
183 # Don't duplicate the output in the exception if logging it
184 raise ExecutionError(cmd, pipe.returncode, None, None)
182 raise ExecutionError(cmd, pipe.returncode, stdout, stderr) 185 raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
183 return stdout, stderr 186 return stdout, stderr