From: prcrst Date: Sun, 8 Jan 2012 16:21:51 +0000 (+0100) Subject: Put the output of the failing command in the exception. X-Git-Tag: 0.1~1151 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5150c22470cc202b630fa39852487b2205f8218a;p=fdroidserver.git Put the output of the failing command in the exception. --- 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"