From 8a0b71bf686ccbf40d3ff31563244d03b4e476bb Mon Sep 17 00:00:00 2001 From: dajiaohuang Date: Thu, 15 Oct 2026 11:06:05 +0800 Subject: [PATCH] fix: return failure when uninstall fails --- Sources/XToolSupport/UninstallCommand.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XToolSupport/UninstallCommand.swift b/Sources/XToolSupport/UninstallCommand.swift index 2bdbc5be..fd3c6572 100644 --- a/Sources/XToolSupport/UninstallCommand.swift +++ b/Sources/XToolSupport/UninstallCommand.swift @@ -25,7 +25,7 @@ struct UninstallCommand: AsyncParsableCommand { ) } catch { print("Failed: \(error)") - return + throw ExitCode.failure } print("Success!") }