From 43bf27106515aa828f4ccadd1a71984e5dfdf0cb Mon Sep 17 00:00:00 2001 From: Dan Field Date: Fri, 11 Oct 2019 10:14:47 -0700 Subject: [PATCH] Print more output when gen_package fails (flutter/engine#13085) --- engine/src/flutter/tools/fuchsia/gen_package.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/tools/fuchsia/gen_package.py b/engine/src/flutter/tools/fuchsia/gen_package.py index 089b730e3f..c000a8e665 100755 --- a/engine/src/flutter/tools/fuchsia/gen_package.py +++ b/engine/src/flutter/tools/fuchsia/gen_package.py @@ -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