From 5150c22470cc202b630fa39852487b2205f8218a Mon Sep 17 00:00:00 2001 From: prcrst Date: Sun, 8 Jan 2012 17:21:51 +0100 Subject: [PATCH] Put the output of the failing command in the exception. --- build.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.py b/build.py index c30520b3..0e4902bd 100755 --- a/build.py +++ b/build.py @@ -145,8 +145,7 @@ for app in apps: stdout=subprocess.PIPE) output = p.communicate()[0] if p.returncode != 0: - print output - raise BuildException("Build failed for %s:%s" % (app['id'], thisbuild['version'])) + raise BuildException("Build failed for %s:%s (%s)" % (app['id'], thisbuild['version'], output.strip())) elif options.verbose: print output print "Build successful" -- 2.30.2