mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
image.py, package_manager.py, rootfs.py: dump command output on error
Print the entire command output in case of errors. (From OE-Core rev: 2253c9ac2caa61dee0bd4fea04d4d77b79be7b36) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
12f47c23df
commit
b2c7cc7fe5
@@ -57,7 +57,7 @@ class Rootfs(object):
|
||||
try:
|
||||
subprocess.check_output(exec_cmd)
|
||||
except subprocess.CalledProcessError as e:
|
||||
return("Command %s returned %d!" % (e.cmd, e.returncode))
|
||||
return("Command '%s' returned %d:\n%s" % (e.cmd, e.returncode, e.output))
|
||||
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user