Exit with exit code 1 if path is not owned by any package

This commit is contained in:
2026-01-02 18:54:09 +02:00
parent 25ccc208d7
commit 271e87cb77
+2
View File
@@ -1103,6 +1103,8 @@ func getFileOwner() {
// Print packages
if len(pkgList) == 0 {
fmt.Printf("%s (%s) is not owned by any packages!\n", absPath, pathType)
exitCode = 1
return
} else {
fmt.Printf("%s (%s) is owned by the following packages:\n", absPath, pathType)
for _, pkg := range pkgList {