diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2022-11-15 12:26:11 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-11-16 14:38:38 +0000 |
| commit | 7c8c209b45ebe5c3d7979c44e53216f61e8b5f2a (patch) | |
| tree | 7916546f4964b7cce80a1f7d9e89d839005bdde2 /src | |
| parent | 80c5bbc627a37929ea571e99f0f15cb059fdaf70 (diff) | |
| download | go-7c8c209b45ebe5c3d7979c44e53216f61e8b5f2a.tar.xz | |
internal/goroot: report PkgfileMap error on invalid line
Ref. https://go-review.googlesource.com/c/go/+/442303/comment/7caca6eb_0ebe4d51/
Change-Id: Id351b9c25380f0959453bb84ed123d0e784e4866
Reviewed-on: https://go-review.googlesource.com/c/go/+/450595
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Joedian Reid <joedian@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/internal/goroot/importcfg.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/goroot/importcfg.go b/src/internal/goroot/importcfg.go index 51d0d77604..89f58c5d3e 100644 --- a/src/internal/goroot/importcfg.go +++ b/src/internal/goroot/importcfg.go @@ -54,7 +54,7 @@ func PkgfileMap() (map[string]string, error) { } sp := strings.SplitN(line, " ", 2) if len(sp) != 2 { - err = fmt.Errorf("determining pkgfile map: invalid line in go list output: %q", line) + stdlibPkgfileErr = fmt.Errorf("determining pkgfile map: invalid line in go list output: %q", line) return } importPath, export := sp[0], sp[1] |
