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",