Skip to content

Commit 87f2ccb

Browse files
authored
Merge pull request github#19249 from github/mbg/go/fix-getpkginfo-decerr
Go: Fix `err` instead of `decErr` in `GetPkgsInfo`
2 parents 9dc008b + 7798b71 commit 87f2ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/extractor/toolchain/toolchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func GetPkgsInfo(patterns []string, includingDeps bool, extractTests bool, flags
259259
break
260260
}
261261
if decErr != nil {
262-
log.Printf("Error decoding output of go list -json: %s", err.Error())
262+
log.Printf("Error decoding output of go list -json: %s", decErr.Error())
263263
return nil, decErr
264264
}
265265
pkgAbsDir, err := filepath.Abs(pkgInfo.Dir)

0 commit comments

Comments
 (0)