aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/mason-core/installer/UninstallRunner.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/mason-core/installer/UninstallRunner.lua b/lua/mason-core/installer/UninstallRunner.lua
index 661bfefa..67ae285f 100644
--- a/lua/mason-core/installer/UninstallRunner.lua
+++ b/lua/mason-core/installer/UninstallRunner.lua
@@ -44,8 +44,9 @@ function UninstallRunner:execute(opts, callback)
local receipt = pkg:get_receipt(location):or_else(nil)
if receipt == nil then
log.fmt_warn("Receipt not found when uninstalling %s", pkg)
+ else
+ try(pkg:unlink(location))
end
- try(pkg:unlink(location))
fs.sync.rmrf(location:package(pkg.name))
return receipt
end):get_or_throw()