aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/release.py b/release.py
index e7a0080b..0016b659 100644
--- a/release.py
+++ b/release.py
@@ -25,7 +25,12 @@ JENKINS_URL = (
def run(*args, **kwargs):
kwargs.setdefault("stderr", subprocess.STDOUT)
- subprocess.check_output(list(args), **kwargs)
+ try:
+ subprocess.check_output(list(args), **kwargs)
+ except subprocess.CalledProcessError as e:
+ # Reraise this with a different type so that str(e) is somethign with
+ # stdout in it.
+ raise Exception(e.cmd, e.returncode, e.output)
def wait_for_build_completed(session):