Skip to content

Commit 7798b71

Browse files
committed
Go: Fix err instead of decErr in GetPkgsInfo
1 parent a7943d8 commit 7798b71

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)