Skip to content

Commit 53b9939

Browse files
merge redundant package manager uninstall failed messages
1 parent 0dbd6ba commit 53b9939

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/opencode/src/cli/cmd/uninstall.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ async function executeUninstall(method: Installation.Method, targets: RemovalTar
196196
? await $`echo Y | choco uninstall opencode -y -r`.quiet().nothrow()
197197
: await $`${cmd}`.quiet().nothrow()
198198
if (result.exitCode !== 0) {
199-
spinner.stop(`Package manager uninstall failed`, 1)
199+
spinner.stop(`Package manager uninstall failed: exit code ${result.exitCode}`, 1)
200200
if (
201201
method === "choco" &&
202202
result.stdout.toString("utf8").includes("not running from an elevated command shell")
@@ -205,8 +205,6 @@ async function executeUninstall(method: Installation.Method, targets: RemovalTar
205205
} else {
206206
prompts.log.warn(`You may need to run manually: ${cmd.join(" ")}`)
207207
}
208-
209-
errors.push(`Package manager: exit code ${result.exitCode}`)
210208
} else {
211209
spinner.stop("Package removed")
212210
}

0 commit comments

Comments
 (0)