Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit 0349c7e

Browse files
committed
impr: uninstall - treat missing package dir as error
1 parent 4d9ea3f commit 0349c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func removePackageDir(fullName string) error {
235235
debug("checking dir: %s", dir)
236236
if !fileio.Exists(dir) {
237237
debug("package dir not found")
238-
return nil
238+
return errors.New("package is not installed")
239239
}
240240

241241
debug("deleting dir: %s", dir)

0 commit comments

Comments
 (0)