Print more output when gen_package fails (flutter/engine#13085)

This commit is contained in:
Dan Field
2019-10-11 10:14:47 -07:00
committed by GitHub
parent 5a663507c2
commit 43bf271065

View File

@@ -91,10 +91,20 @@ def main():
]
# Build the package
subprocess.check_call(pm_command_base + ['build'])
try:
subprocess.check_call(pm_command_base + ['build'])
except subprocess.CalledProcessError as e:
print('The "%s" command failed:' % e.cmd)
print(e.output)
raise
# Archive the package
subprocess.check_call(pm_command_base + ['archive'])
try:
subprocess.check_call(pm_command_base + ['archive'])
except subprocess.CalledProcessError as e:
print('The "%s" command failed:' % e.cmd)
print(e.output)
raise
return 0