diff options
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r-- | python/servo/package_commands.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index e8c2a6e6460..0ecc376f93d 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -224,6 +224,12 @@ class PackageCommands(CommandBase): "path to hvigorw or set the HVIGOR_PATH environment variable to the npm" "installation containing `node_modules` directory with hvigor modules.") sys.exit(1) + except subprocess.CalledProcessError as e: + print(f"hvigor exited with the following error: {e}") + print(f"stdout: `{e.stdout}`") + print(f"stderr: `{e.stderr}`") + sys.exit(1) + else: env["NODE_PATH"] = env["HVIGOR_PATH"] + "/node_modules" hvigor_script = f"{env['HVIGOR_PATH']}/node_modules/@ohos/hvigor/bin/hvigor.js" |