1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Put the output of the failing command in the exception.

This commit is contained in:
prcrst 2012-01-08 17:21:51 +01:00 committed by Ciaran Gultnieks
parent f3a11c0002
commit 5150c22470

View File

@ -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"