From e8e50cd24335d1277c6af5eca911f5469acf2d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Tue, 9 Jul 2024 15:20:03 +0200 Subject: [PATCH] Rethrow installation errors (#612) --- .changeset/large-phones-laugh.md | 5 +++++ .../replayio/src/utils/installation/installLatestRelease.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/large-phones-laugh.md diff --git a/.changeset/large-phones-laugh.md b/.changeset/large-phones-laugh.md new file mode 100644 index 00000000..8ddc4e9e --- /dev/null +++ b/.changeset/large-phones-laugh.md @@ -0,0 +1,5 @@ +--- +"replayio": patch +--- + +Return a proper exit code when installation fails diff --git a/packages/replayio/src/utils/installation/installLatestRelease.ts b/packages/replayio/src/utils/installation/installLatestRelease.ts index bfe7a3e1..bf72b778 100644 --- a/packages/replayio/src/utils/installation/installLatestRelease.ts +++ b/packages/replayio/src/utils/installation/installLatestRelease.ts @@ -84,10 +84,10 @@ export const installLatestRelease = createAsyncFunctionWithTracking( }; } catch (error) { logger.error("InstallLatestRelease:Failed", { error }); - progress.setFailed( "Something went wrong installing the Replay browser. Please try again later." ); + throw error; } }, "update.runtime.installed",