diff --git a/elements/package-installs/bin/package-installs-v2 b/elements/package-installs/bin/package-installs-v2 index d8567753..d5fe4d84 100755 --- a/elements/package-installs/bin/package-installs-v2 +++ b/elements/package-installs/bin/package-installs-v2 @@ -30,7 +30,9 @@ def process_output(cmdline): proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE) out = proc.communicate()[0] if proc.returncode: - raise subprocess.CalledProcessError(proc.returncode, cmdline, out) + e = subprocess.CalledProcessError(proc.returncode, cmdline) + e.output = out + raise e return out