Skip to content

Commit

Permalink
Print more output when gen_package fails (flutter#13085)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield authored Oct 11, 2019
1 parent eed171f commit 89f4566
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tools/fuchsia/gen_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 89f4566

Please sign in to comment.