Go: Fix err instead of decErr in GetPkgsInfo

This commit is contained in:
Michael B. Gale
2025-04-08 12:04:12 +01:00
parent a7943d88b1
commit 7798b716ff

View File

@@ -259,7 +259,7 @@ func GetPkgsInfo(patterns []string, includingDeps bool, extractTests bool, flags
break
}
if decErr != nil {
log.Printf("Error decoding output of go list -json: %s", err.Error())
log.Printf("Error decoding output of go list -json: %s", decErr.Error())
return nil, decErr
}
pkgAbsDir, err := filepath.Abs(pkgInfo.Dir)